Adobe Flash for Beginners - Interactivity & Video
Class Description: Allow users to interact with your Flash creations by adding buttons and ActionScript 3.0. Start off by creating both visible and invisible buttons, then learn how to add the ActionScript required to launch web pages, play sound effects and jump between different parts of the Flash timeline. Create a multimedia project in which user mouse-clicks play and stop external audio. Discover the ease at which your home videos can be converted to web-ready, Flash videos, complete with interactive playback controls. This class is designed to get you rolling in the exciting world of ActionScript.
1. General Information about this Class
2. Important Settings for Class
3. Flash Button Symbols
Exercise 1: Create a Flash Button (including ActionScript 3.0 Functionality)
Exercise 1b. Adding a Rollover Sound Effect to your Pepsi Button
Exercise 2: Creating an Invisible "Hotspot" Button
Exercise 3: Using Buttons to Play & Stop Externally Loaded Audio
Exercise 4: Using Buttons to Navigate within the Flash Timeline
Exercise 5: Encoding Flash Video (.flv)
Instructor: Bill Morrison
1. General Information about this Class
Unlike the first class - Adobe Flash for Beginners - Graphics & Animation - this class focuses on making interactive Flash files. While there are many ways you may allow a user to interact (for example, with their mouse, keyboard, microphone etc.), this class focuses on mouse interaction only.
Allowing for mouse interactivity in a Flash file is a two-part process. First you create a Button Symbol for a user's mouse to interact with...then you associate ActionScript with that button - the ActionScript is written to perform a certain task(s)
Developing the visual look of a button is relatively easy compared to 'ActionScripting' the button which requires you to work with a robust scripting language.
This class is designed to keep things simple, namely, the ActionScript 3.0 code has been written for you. While this class is not designed to teach you the ActionScript language, it will provide you with some immensely valuable lessons including:
- What ActionScript 3.0 looks like
- How to add ActionScript to an .fla file
- How objects on the stage or in the Library are prepped to work with ActionScript
- How to identify basic pieces in an ActionScript code
- How to make minor modifications to an ActionScript code
- How to detect errors in an ActionScript code
At the end of this class, if you feel enthused and eager to learn ActionScript 3.0, you may want to start with these three resources: online tutorials or books or video training
2. Important Settings for Class
- Reset the Flash workspace - Window > Workspace > Classic and/or Window > Workspace > Reset 'Classic'
- Set the Drawing Mode to Object Drawing in the Toolbar
- Under Flash Preferences for ActionScript - set keywords to bright Red
3. Flash Button Symbols
A Button Symbol has it's own timeline and that timeline is divided into four frames known as states:
- Up state - A button's look with no mouse contact
- Over state - A button's look with mouse contact (but without a click) - a.k.a. rollover
- Down state - A button's look when the mouse is clicked
- Hit state - The invisible active area of the button (it often needs not be defined)
The timeline of a Button Symbol may have a single or multiple layers.
![]() |
|
A Flash Button |
The Button Symbol Timeline |
The Flash Button above is like a car without an engine. From the outside it looks like it should work, but when you turn the key (click), nothing happens. This is because ActionScript functionality has not been added.
Exercise 1: Create a Flash Button (including ActionScript 3.0 Functionality)
In this first exercise we will create a simple button from a Pepsi logo. The button will be ActionScripted to launch a webpage (pepsi.com), in a blank browser window, when clicked on by a user. The graphics that make up the button will come from an imported, Adobe Illustrator file. As a review, we will also import a Photoshop file (the Pepsi Can) and apply a Filter to it.
Credit (and with much thanks to): Pepsi Logo - brandsoftheworld.com/ | Sounds Effect - partnersinrhyme.com/ | Pepsi Can - israelavila at Flickr Creative Commons
- Note: some ActionScript functionality has been disabled in the button below
Step by Step »
- From the Menu Bar (File > New) or the Welcome Screen (if visible), create a new, Actionscript 3.0 file
- In the Properties Panel, set the Frame Rate (FPS) to 12
- Note: This file will not be animated - so the Frame Rate is really a moot setting
- In the Properties Panel, change the Stage color to #666666
- Save your file as ex-1.fla
- In the Toolbar, select the Selection Tool
- Demo: The pepsi-can.psd file
- From the Menu Bar, go to File > Import > Import to Stage
- Choose pepsi-can.psd as the file you want to Import
- In the .PSD Import dialogue box, set the following:
- Convert Layers to: Flash Layers
- check 'Place objects at original position'
- check 'Set stage size to same size...'
- check 'Bitmap image with editable layer styles' - this creates a Movie Clip of the image layer allowing Filters to be added
- Be sure the layer is set to Lossy
- With the Selection Tool, select the Pepsi can
- With the can selected, go to the Filters section of the the Properties Panel
- At the bottom of the Filters section, click the "Add filter' icon and choose Drop Shadow
- Style the Drop Shadow Filter to taste
- Lock the 'pepsi-can' layer
- Demo: The pepsi-logo.ai file
- From the Menu Bar, go to File > Import > Import to Stage
- Note: if the Import to Stage is grayed out - be sure the locked pepsi-can layer is not selected
- Choose the pepsi.ai as the file you want to Import
- In the .AI Import dialogue box, set the following:
- with the 'pepsi-logo' layer selected, check the Create movie clip box to the right
- be sure to set Convert Layers to: Flash Layers
- check 'Place objects at original position'
- DO NOT resize the stage
- Once imported, select the Pepsi logo
- In the Properties panel, confirm that the Pepsi logo is a Movie Clip (instance)
- Position the Pepsi logo with your mouse and/or keyboard arrow keys
- Save your file
- Test your movie
- With the Pepsi logo selected, right-click and choose Convert to Symbol
- In the Convert to Symbol dialogue box, set the following:
- choose Type: Button
- enter 'btn-pepsi' for the name
- Save your file
- Test your movie
- Test your button
- In the Toolbar, select the Selection Tool
- On the stage, right-click the Instance of 'btn-pepsi' and choose Edit in Place
- Note: under the Timeline (to the left), you should now notice a Breadcrumb Trail
- Note: you are no longer working on the Main Timeline (Scene 1) but rather in the Button Symbol's Timeline
- Select the Over frame of your button, right-click and choose Insert Keyframe
- Notice that Flash has auto-copied the contents of the Up frame into the Over frame
- Move down to the stage and select the Pepsi logo
- With the can selected, go to the Filters section of the the Properties Panel
- At the bottom of the Filters section, click the "Add filter' icon and choose Drop Shadow
- Style the Drop Shadow Filter to taste
- Move back up to the Button Symbol Timeline and select the Down frame, right-click and choose Insert Keyframe
- Notice that Flash has auto-copied the contents of the Over frame into the Down frame
- Move down to the stage and select the Pepsi logo
- In the Toolbar, select the Free Transform Tool
- Use the Free Transform Tool to give the Pepsi logo a slight, clock-wise rotation
- When done, in the Toolbar, select the Selection Tool
- Return to the Main Timeline (Scene 1)
- Save your file
- Test your movie
- Test your button
- You should notice there is a problem with the button - namely, in-active areas
- In the Toolbar, select the Selection Tool
- On the stage, double-click the Instance of 'btn-pepsi' to go into Symbol Edit Mode
- this is another way getting into Symbol Edit Mode
- Note: in this Symbol Edit Mode, you loose the surrounding context
- Return to the Main Timeline (Scene 1)
- On the stage, right-click the Instance of 'btn-pepsi' and choose Edit in Place
- Select the Up frame of you button
- Move down to the stage and select the Pepsi logo
- Copy the Pepsi logo (from the Menu Bar choose Edit > Copy)
- Select the Hit frame of your button, right-click and choose Insert Blank Keyframe
- From the Menu Bar, go to Edit > Paste in Place
- In the Toolbar, select the Rectangle Tool
- Prior to drawing, in the Tool Bar, be sure to define a fill color (for example, red)
- For practice, turn the stroke off by setting its color to blank
- With the Rectangle Tool, click and drag two, filled rectangles to cover the pepsi logo
- Return to the Main Timeline (Scene 1)
- Save your file
- Test your movie
- Test your button
- In the Toolbar, select the Selection Tool
- Select the Pepsi button
- In the Properties Panel, give the Pepsi button an instance name of 'myBtn'
- Your Instance Name will need to match the pre-written, ActionScript code - spelling and case-sensitivity counts
- Lock the 'pepsi-logo' layer
- Create a new layer and name it 'actions'
- it is very common for Flash developers to create a separate layer to hold their ActionScript code
- it is also very common to name that layer 'actions'
- the 'actions' layer is normally placed at the top of the layer stack
- Move the 'actions' layer to the top of the layer stack
- Lock the 'actions' layer
- NOTE: you can add ActionScript code to locked 'actions' layer
- In the Menu bar, go to File > Open - open the flash-02.as
- Drag through (select) then copy (cmd/ctrl + c) the pepsi code
- Flip back to the ex-1.fla
- Highlight the Blank Keyframe in the 'actions' layer
- From the Menu Bar, go to Window > Actions to open the Actions Panel
- With the Blank Keyframe of the 'actions' layer selected, place your cursor in the Actions Panel and paste (cmd/ctrl + v)
- note the ActionScript symbol in the Blank Keyframe
- Save your file
- Test your movie
- Test your button
- Demo: Flash Security Warning
Let's have a quick look at the ActionScript 3.0 code you applied:

- This is the Instance Name of the Pepsi button - the link between ActionScript and object.
- Your Pepsi button will be listening for...
- a mouse Event....
- specifically, a Click.
- When a click is heard (so to speak), something called 'pepsiPage' will happen.
- 'pepsiPage' is a Function that...
- reaches out to pepsi.com...
- and opens the Pepsi home page in a Blank Browser Window
Exercise 1b. Adding a Rollover Sound Effect to your Pepsi Button
Step by Step »
- From the Menu Bar, go to File > Save As
- Save your file as ex-1b.fla
- In the Toolbar, select the Selection Tool
- From the Menu Bar, go to File > Import > Import to Library
- Select and import the pepsi.wav sound file
- Open the Library Panel (from the Menu Bar, go to Window > Library)
- Select pepsi.wav
- Note: you can play sound effects in the Library
- Right-click on pepsi.wav and choose Properties...
- Be sure the Sound Properties dialogue box is fully open by clicking the Advanced button
- In the Sound Properties dialogue box, set the following:
- choose 'Export for ActionScript'
- enter 'pepsiSoundFX' for Class:
- The Class will need to match the pre-written, ActionScript code - spelling and case-sensitivity counts
- Hit OK
- Hit OK for the ActionScript Class Warning that follows
- In the Menu bar, go to File > Open - open the flash-02.as
- Drag through (select) then copy (cmd/ctrl + c) the second pepsi code
- From the Menu Bar, go to Window > Actions to open the Actions Panel
- Select the Blank Keyframe in your 'actions' layer
- In the Actions Panel, select and delete the old code
- Paste (cmd/ctrl + v) the new code into the Actions Panel
- Save your file
- Test your movie
- Test your button
Let's have a quick look at the NEW ActionScript 3.0 code you applied:

- This again is the instance name of your Pepsi button - the link between ActionScript and object.
- Your Pepsi button will be listening for...
- a mouse Event....
- specifically, a Mouse Over (a.k.a. rollover).
- When a rollover is felt (so to speak), something called 'pepsiSound' will happen
- 'pepsiSound' is a Function that...
- looks internally for 'pepsiSoundFX' (which you assigned in the Library)
- and plays it (on mouse over).
Exercise 2: Creating an Invisible "Hotspot" Button
There may come a time when you find yourself in need of mouse interactivity, but not in need of an visible, graphic button - enter the invisible (hotspot) button in Flash.
The animation below illustrates what an invisible buttons looks like. As you roll over the entire piece, your mouse cursor should be a hand icon - but note, there is no visible button.
Step by Step »
- From the Menu Bar, go to File > Open
- Choose ex-2.fla
- In the Toolbar, select the Selection Tool
- Create a New Layer and re-name it 'hotspot'
- Move the 'hotspot' layer to the top of the layer stack
- Lock all other layers to avoid mistakes
- In the Toolbar, select the Rectangle Tool
- Prior to drawing, in the Tool Bar, set the following:
- be sure to define a fill color (for example, red)
- turn the stroke off
- With the Rectangle Tool, click and drag a rectangle on your stage
- Don't worry about the size - we'll take care of that next
- In the Toolbar, select the Selection Tool
- Select the rectangle
- From the Menu Bar, go to Window > Align
- In the Align Panel, be sure to click To stage:
- Click the Match width and height button - Your rectangle resizes to match the stage
- To align your rectangle to the stage, click the Align horizontal center button and the Align vertical center button
- Select your rectangle, right-click and choose Convert to Symbol
- In the Convert to Symbol dialogue box, set the following:
- choose Type: Button
- enter 'btn-hotspot' for the name
- On the stage, right-click the Instance of 'btn-hotspot' and choose Edit in Place
- To create an invisible button do the following:
- click the Up keyframe and release the mouse - then...
- click and drag the Up state Keyframe to the Hit state
- Return to the Main Timeline (Scene 1)
- the cyan color you see is your invisible, hotspot button
- Be sure your Button extends through the entire animation
- If it doesn't, right-click and choose Insert Frame in the appropriate place
- Save your work
- Test your movie
- Test your button
- Demo: Re-using ActionScript code
Exercise 3: Using Buttons to Play & Stop Externally Loaded Audio
In this exercise we will create a 'multi-media' piece. The multi forms of media will be bitmap, vector, audio (.mp3) and text. ActionScript 3.0 functionality will be added, allowing users to play and stop the audio by clicking on Flash buttons.
Credit (and with much thanks to): Tiger Image - sxc.hu (stock.xchng for free/low cost stock photography) | Tiger Vector - commons.wikimedia.org
Audio: The audio in this exercise was recorded with a Logitech USB Desktop Microphone ($20 +/-). For higher quality recordings you may want to consider a Samsung USB Mic - ($100 +/-). For editing your recordings I highly recommend both WavePad and Audacity
Step by Step »
- From the Menu Bar (File > New) or the Welcome Screen (if visible), create a new, Actionscript 3.0 file
- Save your file as ex-3.fla
- In the Toolbar, select the Selection Tool
- Demo: The tiger.ai file
- From the Menu Bar, go to File > Import > Import to Stage
- Choose the tiger.ai as the file you want to Import
- In the .AI Import dialogue box, set the following:
- Be sure the text within the 'title-text' and 'url-text' layers is set to Editable text at right
- With the 'logo' layer selected, check the Create movie clip box to the right
- Be sure to set Convert Layers to: Flash Layers
- Check 'Place objects at original position'
- Check 'Set stage size to same size...'
- After import, immediately lock the 'tiger' layer
- With nothing selected, in the Properties Panel, change the Stage color to #666666
- With the Selection Tool, select the tiger logo
- Use the keyboard arrows to nudge the logo up - to taste
- Adding SHIFT while using keyboard arrows increases the nudge increment
- With tiger logo selected, in the Properties Panel, in the Color Effect section, under the Style: drop-down menu, choose Tint
- Use the Tint color picker to sample an orange from the tiger image (i.e. from the fur)
- Lock the 'logo' layer
- With the Selection Tool, select both blocks of text
- using the SHIFT key allows you to select more than one object at a time
- In the Properties Panel, change the font color for both blocks to white
- De-select your text blocks by clicking off the stage
- Select only the title text
- Change the font to one of your own choosing
- Lock both the 'title-text' and 'url-text' layers
- With nothing selected, in the Properties Panel, change the Stage color to black
- Save your file
- Test your movie
- In the layers section of the Timeline, turn off the visibility of the 'image' layer
- Create a New Layer and name it 'gradient'
- Drag the 'gradient' layer to the bottom of the layer stack
- Select the Rectangle Tool from the Toolbar
- In the Tool Bar (prior to drawing), set the following:
- fill color to bright green
- stroke to none
- Drag out a rectangle on the stage - do not worry about the size
- In the Toolbar, select the Selection Tool
- Select the rectangle
- From the Menu Bar, go to Window > Align
- In the Align Panel, be sure the To stage: button is checked
- Click the Match width and height button - Your rectangle resizes to match the stage
- To align your rectangle to the stage, click the Align horizontal center button and the Align vertical center button
- From the Menu Bar, go to Window > Color
- With your rectangle selected, in the Color Panel, click the the Type: drop-down menu and choose Linear
- If needed, in the Color Panel, change the Gradient color chip(s) so you have an obvious gradient
- From the Menu Bar, go to View > Zoom Out
- In the Toolbar, select the Gradient Transform Tool
- With the Gradient Transform Tool, select your rectangle
- Locate the rotate gradient icon in the corner of your rectangle
- Click and drag the rotate gradient icon to rotate your gradient 90 degrees clockwise
- Locate the gradient resize icon on the side of your rectangle
- Click and drag gradient resize icon until you gradient fits your stage
- In the Color Panel, change the Gradient color chip(s) so black is at the bottom, dark gray at the top
- Lock the "gradient" layer
- Save your file
- Test your movie
- Select the top-most layer in your layer stack
- Create a New Layer
- New layers are added above the layer currently selected
- Re-name the new layer 'buttons'
- In the 'buttons' layer timeline, select Blank Keyframe 1
- From the Menu Bar, go to Windows > Common Libraries > Buttons
- Navigate to the Classic Buttons > Push Buttons folder
- Drag out 2 Push Buttons under the title text - one green (to the left), one red (to the right)
- Close the Button Library
- Lock the 'buttons' layer
- Save your file
- Test your movie
- Create a New Layer and rename it 'actions'
- Lock the 'actions' layer
- Highlight the Blank Keyframe in the 'actions' layer
- In the Menu bar, go to File > Open - open the flash-02.as
- Drag through (select) then copy (cmd/ctrl + c) the tiger code
- Flip back to the ex-3.fla
- From the Menu Bar, go to Window > Actions to open the Actions Panel
- Into the Blank Keyframe of the 'actions' layer, place your cursor in the Actions Panel and paste (cmd/ctrl + v)
- note the ActionScript symbol in the Blank Keyframe
- Save your file
- Test your movie
- Notice that flash tells you, via the Output Panel, that there is a problem with the file
- Find the Button Instance names referenced in the code
- Add the Instance Names, referenced in the code, to the Buttons on the stage in the Properties Panel
- Save you file
- Test your movie
- Demo: Changing the .mp3
Let's have a quick look at the ActionScript 3.0 code you applied:

- This code goes out and retrieves the external, tiger.mp3
- These are the Instance names of your buttons
- These are the Functions that are triggered by clicking on the buttons
- The playMusic function causes the audio to play
- The stopMusic function causes the audio to stop
Exercise 4: Using Buttons to Navigate within the Flash Timeline
In this exercise we will create a Flash piece with a navigation system that jumps to different points on the Timeline. To make this possible, we will use Buttons, Frame Labels and ActionScript 3.0. Frame content will be provided by shapes with bitmap fills (from imported bitmap files).
Credit (and with much thanks to): Patterns: squidfingers.com/
Step by Step »
- From the Menu Bar (File > New) or the Welcome Screen (if visible), create a new, Actionscript 3.0 file
- Save your file as ex-4.fla
- In the Toolbar, select the Selection Tool
- In the Timeline, create 5 layers and re-name them, from top to bottom:
- actions
- labels
- buttons
- text
- patterns
- Lock all 5 layers
- In the Menu Bar, go to File > Import to Library
- Import the 5 .gif files
- Unlock the 'patterns' layer
- In the 'patterns' layer timeline, select Blank Keyframe 1
- Select the Rectangle Primitive Tool from the Tool Bar
- In the Tool Bar (prior to drawing), set the following:
- fill color to red
- stroke color off
- Drag out a Rectangle Primitive on the stage
- Don't worry about the size - we'll get to that next
- In the Toolbar, select the Selection Tool
- Select the Rectangle Primitive
- In the Properties Panel, set the following properties for the Rectangle Primitive
- W: (width) to 580px
- H: (height) to 290px
- set Rectangle Options to 22 (for all 4 sides)
- With nothing selected, in the Properties Panel, click the Edit button (to change the Stage size)
- In the Document Properties dialogue box, select 'Contents' - then exit
- With nothing selected, in the Properties Panel, again click the Edit button
- In the Document Properties dialogue box, enter 360 for the (height) value - then exit
- From the Menu Bar, go to Window > Align
- In the Align Panel, with the To stage: button selected, align your Rectangle Primitive to stage bottom
- With your Rectangle Primitive selected, open the Color Panel
- Click the Type: drop-down and choose Bitmap
- Select the first bitmap from those available
- In the Timeline, on the 'pattern' layer, insert Keyframes into frames 10, 20, 30 & 40
- Notice that Flash auto-copies the previous keyframes content as you move right
- Insert a Regular Frame into frame 50 of the 'patterns' layer
- Change the bitmap fill for the Rectangle Primitives in frames 10, 20, 30 and 40
- Five imported bitmap patterns...five keyframes...five different Bitmap Fills
- Use the Timeline scrubber to preview the file
- Lock the 'patterns' layer
- Save your file
- Test your movie
- In the Toolbar, select the Selection Tool
- Unlock the 'text' layer
- In the 'text' layer timeline, select Blank Keyframe 1
- In the Toolbar, select the Text Tool
- In the Properties Panel (prior to typing), set the following:
- the type tool to produce Static Type
- Set the font to Papyrus
- Set the font size to 55
- Click and type out the word 'Patterns'
- Once you are done typing, go back to and select the Selection Tool from the Toolbar
- Select and position your text block to the stage upper left
- With the Selection Tool, double-click between the between the 'P' and the 'a'
- NOTE: Double-clicking on a type box gets you into the font, and sets your Text Tool
- In the Properties Panel, use the Letter Spacing control to adjust the space between the 'P' and the 'a'
- In the Toolbar, select the Selection Tool
- Insert a Regular Frame into frame 50 of the 'text' layer
- Lock the 'text' layer
- Save your file
- Test your movie
- Unlock the 'buttons' layer
- In the 'buttons' layer timeline, select Blank Keyframe 1
- From the Menu Bar, go to Windows > Common Libraries > Buttons
- Navigate to the Classic Buttons > Push Buttons folder
- Drag out 5 Push Buttons along the top of the stage (each a different color)
- In the Toolbar, select the Selection Tool
- Select and position the left-most Push Button to taste
- Select and position the right-most Push Button to taste
- Select all 5 Push Buttons
- From the Menu Bar, go to Window > Align
- In the Align Panel, with the To stage: button unselected, align bottom edge of your buttons
- In the Align Panel, with the To stage: button unselected, distribute horizontal center of your buttons
- In the Properties Panel, assign Instance Names (from left to right) of 'bt1', 'bt2', 'bt3', 'bt4' and 'bt5'
- Your Instance Names will have to match the pre-written ActionScript code - spelling and case-sensitivity counts
- Insert a Regular Frame into frame 50 of the 'buttons' layer
- Lock the ‘buttons’ layer
- Save your file
- Test your movie
- Unlock the 'labels' layer
- In the Timeline, on the 'labels' layer, insert keyframes into 10, 20, 30, 40
- Insert a Regular Frame into frame 50 of the 'labels' layer
- In the Properties Panel, assign frame labels (from left to right) of 'pt1', 'pt2', 'pt3', 'pt4' and 'pt5'
- Your frame labels will have to match the pre-written ActionScript code - spelling and case-sensitivity counts
- Lock the ‘labels’ layer
- Save your file
- Test your movie
- Highlight your 'actions' layer
- In the 'actions' layer timeline, select Blank Keyframe 1
- NOTE: you do not need to unlock the 'actions' layer before adding ActionScript code
- From the Menu Bar, go to Window > Actions to open the Actions Panel
- In the Actions Panel, type stop();
- Add a couple Return/Enters after the stop(); code
- Save your file
- Test your movie
- In the Menu bar, go to File > Open - open the flash-02.as
- Drag through (select) then copy (cmd/ctrl + c) the patterns code
- Flip back to the ex-4.fla
- From the Menu Bar, go to Window > Actions to open the Actions Panel
- With the Blank Keyframe of the 'actions' layer selected, place your cursor in the Actions Panel and paste (cmd/ctrl + v)
- note the ActionScript symbol in the Blank Keyframe
- Save your file
- Test your movie
- DEMO: Frame Labels and Timeline spacing
- DEMO: Frame Label error
- DEMO: Instance Name error
Let's have a quick look at the ActionScript 3.0 code you applied:

- Stops the Timeline
- Goes to and Stops on...
- the Frame with a Frame Label of "xxx"
Exercise 5: Encoding Flash Video (.flv)
In this exercise we will create, via the Import Video...command, a Flash file containing an encoded Flash video (.flv) and playback skin allowing for user interaction. The sub-goals of the exercise are to end up with a .flv file which is smaller in both file size and pixel dimensions than the source video.
Credit (and with much thanks to): The video used in this exercise came from archive.org
Step by Step »
- From the Menu Bar (File > New) or the Welcome Screen (if visible), create a new, Actionscript 3.0 file
- Save your file as ex-5.fla
- In the Menu Bar, go to File > Import > Import Video...
- In the Select Video dialog box:
- Click the Browse button and select the popcorn.mov video
- Click the Launch Adobe Media Encoder button
- This launches a separate application
- In the Adobe Media Encoder list of videos to be encoded screen - select the popcorn.mov by clicking it's Source Name
- Note: if there are other videos in the list, select them and choose Remove at right
- With popcorn.mov selected, click the Settings...button to the right
- The Export Settings window has three distinct sections:
- a video preview section (left)
- Export Settings (upper right)
- and five tabs (lower right) - allowing for export fine tuning
- In the Export Settings section, set the following:
- For Format choose FLV | F4V
- For Preset choose FLV Same As Source (Flash 8 and higher)
- For Output Name...rename the video 'flash-popcorn.flv'
- In the preview section, and under the video:
- Slide the top slider triangle to preview your video
- Click and drag the in point triangle to adjust when your video begins
- Click and drag the out point triangle to adjust when your video ends
- Of the five tabs - click the Format tab
- Under Basic Settings, set the following:
- be sure to select flv
- Of the five tabs - click the Video tab
- Under Basic Video Settings, set the following:
- Video codec: on2 VP6 (the latest, greatest codec)
- Be sure Encode Alpha Channel is off - this video has not been prepared for 'green screening'
- Check the Resize Video box
- Make sure Constrain width/height is activated
- Set the Frame Width [pixels] to 320 - the height should come along for the ride
- Set the Frame rate: to 15 fps (half of the source video's frame rate)
- Under Bitrate Settings, set the following:
- set the Bitrate [kbps] to 300
- Of the five tabs - click the Audio tab
- Under Basic Audio Settings, set the following:
- For Output Channels choose mono
- Under Bitrate Settings, set the following:
- set the Bitrate [kbps] to 48
- Hit OK to exit the Export Settings
- In the Adobe Media Encoder list of videos to be encoded screen - click the Start Queue button - and wait
- When the encoding is done, switch back to Flash
- Read the little help message that appears (in Flash) - it tells you what you'll need to do after encoding
- In the Select Video dialog box:
- Hit the Browse button again, this time selected the freshly encoded 'flash-popcorn.flv' file
- Check the Load external video with playback component box
- note that there are other ways to distribute Flash video across the web
- Hit the Next button
- In the Skinning dialog box:
- pick SkinUnderPlayStopSeekMuteVol.swf
- pick any color for now - we can pick a different color later on
- Hit Next to move on
- In the Finish Video Import dialog box - hit Finish and wait...
- Save your file
- Test your movie
- In the Toolbar, select the Selection Tool
- Select the Video
- From the Menu Bar, go to Window > Component Inspector
- In the Component Inspector set the following:
- change the skinBackgroundColor to #666666
- Set autoPlay to false
- Rename Layer 1 to 'video'
- Lock the 'video' layer
- Create a New Layer and rename it 'title'
- In the Toolbar, select the Text Tool
- In the Properties Panel (prior to typing), set the following:
- the type tool to produce Static Type
- set the font to Arial
- set the font size to 18
- set the color to black
- Type the words 'The Popcorn Guy'
- With the text selected, in the Menu Bar, go to Modify > Transform > Rotate 90° CCW
- Select and position the text along the left side of the video
- With nothing selected, in the Properties Panel, hit the Size button
- Select Contents to resize the stage to match the content of the stage
- Save your file
- Test your movie
- notice that Flash failed to consider the Video Controller
- Hit the Size button again - add 45 to the height value to include the player skin
- Save your file
- Test your movie
