SM5312 week 11: Flash Objects in HTML1 Flash Objects in HTML Nick Foxall.

Slides:



Advertisements
Similar presentations
2.02F Publishing Animated Videos 2.02 Develop Computer Animations.
Advertisements

Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
Chapter 6 Preparing and Publishing Applications. Chapter 6 Lessons 1.Publish movies 2.Reduce file size to optimize a movie 3.Create a preloader 4.Publish.
Understand the Macromedia Flash environment Open a document and play a movie Create and save a movie Work with layers and the timeline Plan a Web site.
Macromedia Director 8 Intermediate Level Course. Ink Masks Using the Ink Mask feature will allow you to create parts of a bitmap cast member to become.
1 Introduction to Computer Science بسم الله الرحمن الرحيم MULTIMEDIA LEVEL -9 King Khalid University Kingdom of Saudi Arabia Ministry of Higher Education.
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Presents… “Best Encoding Practices” For use with.
Dreamweaver CS4 Concepts and Techniques Chapter 8 Media Objects.
3.02 Publishing Animations
Different Streaming Technologies. Three major streaming technologies include:
Macromedia Flash MX 2004 – Design Professional Macromedia Flash MX GETTING STARTED WITH.
Frame(GIF) and Vector Animation. Two Applications for Creating Animations 1.Photoshop – GIF Animation 2.Flash – Vector Animation.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
Flash Video Flash ActionScript 3.0 Introduction to Thomas Lövgren, Flash developer
Review of last session The Weebly Dashboard The Weebly Dashboard Controls your account and your sites Controls your account and your sites From here you.
Chapter 17 Putting It All Together. Viewing the Preloader To view the preloader, 1.CTRL-Enter to test the movie. 2.View > Simulate Download.
© 2010 Delmar, Cengage Learning Chapter 6: Preparing and Publishing Movies.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
Using Multimedia on the Web
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
Lesson 10: Adding Flash, Video, and Sound Content Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver.
Chapter 15 Video. Importing Video Into Flash Once you import video into Flash MX 2004, you can control it using behaviors and very basic ActionScript,
BUILDING RICH MEDIA ELEMENTS. Design Decisions Based on Design Specification  Following the design specification will ensure that the application is.
Uploading Image Files. Introduction – Click on Control Panel Button Typically, most instructors will post the majority of their images under the “Course.
Adobe Flash Professional CS5 Provides a comprehensive authoring environment for creating digital animation and interactive Web sites. Used to create engaging.
Advanced Level Course. Site Extras Site Extras consist of four categories: Stationeries Site Trash Designs Components.
To download PhotoStory: Go to On the left side under Product Resources, click on Downloads.
2.02G Publishing Animated Videos 2.02 Develop Computer Animations.
Dm 11 – Intro. To Flash Macromedia Flash MX GETTING STARTED WITH.
Macromedia Flash CS4. What is Flash CS4? –Animation and interactive authoring program –Tools for complex animation, as well as excellent drawing tools.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
2008 Foundation Flash CS3 Video. Creating and Playing Flash Video You are not creating a video; you are encoding a video. This means you will be simply.
Audio and Video on the Web Presentation by Cheryl Deas and Pasha Souvorin Multimedia for Web Designers.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
Files, File Format Folders Paths, URL Absolute Addresses Relative Addresses © Ms. Masihi.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Planning and Creating a Flash Web Site.
Adobe Flash CS5 Introduction. What is Flash? Flash is a multimedia platform used to add animation, video, and interactivity to Web sites. It is often.
FILES AND ASSETS PANELS
Review of last session Add text to your website Add text to your website Title Title Paragraph Paragraph Title and paragraph Title and paragraph Add photographs.
Chapter 16 Video. Importing Video Into Flash  Once you import video into Flash, you can control it using behaviors and very basic ActionScript, target.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
5-1 OBJ Copyright 2003, Paradigm Publishing Inc. Adding Sound, Video, and Basic Interactivity with Buttons Macromedia Flash Design & Application.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
XP Tutorial 7 Creating a Flash Web Site. XP New Perspectives on Macromedia Flash 82 Objectives Plan and create a Flash Web site Create a Flash template.
Photo Story. How to use Photo Story Photo Story 3 can be located in the Accessories folder on school computers. You will need to have your pictures already.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
Chapter 11 Adding Media and Interactivity. Chapter 11 Lessons Introduction 1.Add and modify Flash objects 2.Add rollover images 3.Add behaviors 4.Add.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Motion Graphics & Animation.
Advanced Website Design Professor: Jared Kozel Class Description: Are you already familiar with how to construct a basic Website? This class will teach.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
Adobe Flash Professional CS5 – Illustrated Unit E: Optimizing and Publishing a Movie.
Tutorial 7 Adding Behaviors and Rich Media. Objectives Session 7.1 – Learn about behaviors – Add behaviors to a page – Add a custom script to a page Session.
Adobe Flash Professional CS5 – Illustrated Unit A: Getting Started with Adobe Flash Professional.
HOW FLASH WORKS The Flash authoring environment is used to create Flash movies The .fla file is exported to a format called .swf The .swf file is.
Using Video, and Flash Components, and Printing Flash Content
Chapter Lessons Understand the Macromedia Flash workspace
3.02 Publishing Animations
2.02G Publishing Animated Videos
2.02F Publishing Animated Videos
Chapter 2 Adding Web Pages, Links, and Images
Create and edit web pages 2
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

SM5312 week 11: Flash Objects in HTML1 Flash Objects in HTML Nick Foxall

SM5312 week 11: Flash Objects in HTML2 Flash File Formats There are three core Flash file formats that you need to be aware of, and can be confusing if you’re new to Flash: FLA (extension.fla): the “author” file, or editable file SWF (extension.swf): the exported animation file FLV (extension.flv): the Flash video file format

SM5312 week 11: Flash Objects in HTML3 Flash File Formats: FLA The FLA file is the core, editable Flash file; the one where you “author” / create your designs, import graphics, make animations, and insert scripts. FLAs do not appear (and cannot be inserted) into your web pages. Think of a Photoshop (PSD) file, from which you might export JPGs, GIFs, etc. When creating a new Flash animation file, be aware of the version you choose: Actionscript 2 or Actionscript 3. TIP: save your FLA file inside the root folder of your website. That way, when you export the final animation [SWF] file (and any HTML file), its always right there ready to be linked from its containing HTML page.

SM5312 week 11: Flash Objects in HTML4 Flash File Formats: SWF The SWF file is the exported, final animation file; the one that plays back your animation to the viewer; the one you want to appear within a web page. In Flash this is called “publishing” your animation (File > Publish). Under “Publish Settings” you can select to export a containing HTML file too—one that will correctly display your SWF file in a browser. If you select to include an exported HTML, there are a number of settings you can choose that govern the placement and playback of your animation in the HTML file.

SM5312 week 11: Flash Objects in HTML5 Flash File Formats: FLV An FLV file is an encoded Flash video file usually compressed with the On2 VP6 or Sorenson Spark codecs. Think of an FLV file like a QuickTime, or Windows Media file. These are all video file formats. However, unlike QuickTime and Windows Media videos, FLVs cannot be displayed directly in the browser (you cannot insert code that directly loads the FLV into the browser window. An FLV file has to be loaded into a containing SWF file. The SWF file acts as a video player, with controls for play, pause, fast forward, etc.

SM5312 week 11: Flash Objects in HTML6 Browser Plugins Browsers cannot play Flash animations (SWFs) or Flash videos (FLVs) without the right plugin installed. A plugin is a small application that is triggered to load and play certain types of content when the browser loads an HTML page with “links” to that content. Plugins are required to play most video formats delivered over the web…

SM5312 week 11: Flash Objects in HTML7 Browser Plugins Common video playback plugins are: QuickTime (current version: 7) DirectX or Windows Media (current versions: 10, 11) Flash (current version: 9) The good news for Flash: percent of all users browsing the internet these days have the Flash plugin, usually pre-installed on most new computers and OS’s

SM5312 week 11: Flash Objects in HTML8 Inserting Flash into HTML As mentioned, only SWF files can be embedded into an HTML page. The easy way is to select HTML alongside “Flash (.swf)” as an export option via the “publish settings” dialogue. An “HTML” tab appears at the top, containing options for the exported file…

SM5312 week 11: Flash Objects in HTML9 Inserting Flash into HTML Clicking the HTML tab shows a number of options for configuring how your final animation/movie is displayed within the HTML page. You can also include an option to detect the right version of the user’s Flash plugin. This is quite important, as most of the latest features in Flash require at least the version 8.x plugin.

SM5312 week 11: Flash Objects in HTML10 Inserting Flash into HTML: Flash Detect However, note that when you select “Detect Flash Version”, it exports a javascript file as well as the HTML and SWF files. This javascript file needs to be uploaded to your site along with your HTML and SWF in order for Flash to work in your page.

SM5312 week 11: Flash Objects in HTML11 Flash in HTML: A Simpler Method An alternative to the inbuilt Flash export options is to use SWFobject, a more advanced, and more standards-compliant script that’s easier to manage. SWFobject.js is a javascript file that needs to be linked to from the page containing your Flash object: Then upload to your web server.

SM5312 week 11: Flash Objects in HTML12 Flash in HTML: SWFobject Then at the point where you want to insert your Flash object, insert these lines of code: // <![CDATA[ var so = new SWFObject("flashfile.swf", "Alumni Picture Gallery", "615", "430", "8.0.0", "#FFFFFF", true); so.write("header"); // ]]> Here, there are essentially only 2 lines of code to configure, as opposed to over 20 lines in the original Flash insert code.

SM5312 week 11: Flash Objects in HTML13 Flash in HTML: SWFobject // <![CDATA[ var so = new SWFObject("flashfile.swf", "Alumni Picture Gallery", "615", "430", "8.0.0", "#FFFFFF", true); so.write("header"); // ]]> Just change the values inside the brackets to match your Flash movie. And change the value of so.write to match the name of your containing div element in the HTML

SM5312 week 11: Flash Objects in HTML14 Flash in HTML: SWFobject // <![CDATA[ var so = new SWFObject("flashfile.swf", “Picture Gallery", "615", "430", "8.0.0", "#FFFFFF", true); so.write("header"); // ]]> In this example: The Flash movie file is “flashfile.swf” Its name is “Picture Gallery” Its width and height are 615 by 430 pixels The minimum Flash player version is 8.0 The background colour is white, and Autoplay is set to ‘true’ Also the Flash file will load and replace any content inside the div id=“header”

SM5312 week 11: Flash Objects in HTML15 Flash in HTML: SWFobject There are additional parameters that can be added and configured in SWFobject, including importing dynamic text from the HTML file when the Flash file loads in the page. You can download SWFobject and find out more about the features at:

SM5312 week 11: Flash Objects in HTML16 Flash Video

SM5312 week 11: Flash Objects in HTML17 Preparing for Flash Video As mentioned, video files in Flash are encoded in either the On2 VP6 or Sorenson Spark codecs, and saved in the Flash video (.flv) format. To create a Flash format video (.flv) from an existing video file, you need to use the Flash Video Encoder, which is part of Flash CS3 Professional. Begin with a suitable format video file on your hard drive, such as uncompressed DV, QuickTime or AVI. Flash cannot import direct from tape or DVD sources. Open the Flash CS3 application to set up your video player

SM5312 week 11: Flash Objects in HTML18 Setting up Flash Video Playback Open Flash CS3 Professional and create a new Flash authoring file. Set the size of the stage you want for your final Flash file. This can match the size of the final video you want to playback, or it can be larger. Go to Window > Components to bring up the Flash components panel. Select the FLVPlayback component and drag it onto the stage. Position and resize the component to the desired size. It’s a good idea to decide beforehand what size (width and height in pixels) you want your video to display in the browser, and make the player match that size.

SM5312 week 11: Flash Objects in HTML19 Setting up Flash Video Playback Select the Components Panel, and drag a copy of ‘FLVPlayback’ onto the stage Set various parameters of the player using the ‘Parameters’ tab in the properties panel, or the ‘Component Inspector’ panel

SM5312 week 11: Flash Objects in HTML20 Encoding a Video to FLV Format In Flash, go to File > Import > Import Video… Use the ‘Choose’ button to select your source video, then click ‘Continue’ Select ‘Progressive Download from a Web Server’ and click ‘Continue’

SM5312 week 11: Flash Objects in HTML21 Encoding a Video to FLV Format Click the ‘video’ tab and configure: Codec: leave set at On2 VP6 for best results Frame rate: use “same as source” or type in the actual rate of the source video (25 fps for PAL) Quality: around Kbps usually produces good results Keyframes: may need experimentation, depending on how much movement and rapid action is in your video

SM5312 week 11: Flash Objects in HTML22 Encoding a Video to FLV Format Click the ‘audio’ tab and configure the data rate (compression) for the sound within your video. For a simple dialogue, a rate of 64 or 48 Kbps is probably acceptable.

SM5312 week 11: Flash Objects in HTML23 Encoding a Video to FLV Format Finally, click ‘Crop and Resize’ and resize the video to the dimensions you wish to play the movie in your Flash file (in your web page). It’s important to set the dimensions you want for the final output movie, as this will have a considerable effect on the final file size of your FLV file.

SM5312 week 11: Flash Objects in HTML24 Connecting the Encoded FLV to the SWF Player Once the video has finished encoding, ensure the final FLV is moved into your site root folder. Back in Flash, select the FLVPlayback component on the stage and go to the ‘Parameters’ or ‘Component Inspector’ panels. Click the little search icon next to ‘Content path’ and locate your FLV file in the dialogue. Click ‘OK’ and your Flash player is linked to your FLV movie. Publish the Flash player SWF and embed it in your HTML page, as before.

SM5312 week 11: Flash Objects in HTML25 Connecting the Encoded FLV to the SWF Player Select the ‘FLVPlayback’ component currently on the stage In the ‘Component Inspector’ panel, click the icon at the end of contentPath In the dialogue box, use the folder icon to find and select your final FLV file. *Make sure your FLV movie is already moved into your site root folder