Passing Variables Using Flash and Dreamweaver
This tutorial will show you how to set paths to media content by passing variables to flash using html, as opposed to “hard coding” paths inside of flash. This allows for slightly more dynamic flash video delivery (especially if used as part of a bigger application), easier and faster updateability, and just less hassle overall.
Let’s get started by creating a new .FLA file.
First thing to do is to set up our layers. We will need one layer named “actions” that will hold all of our script and another that will have our video players on it, so we will name it “player”.

The size of the stage and any video players that you will use should depend on your personal project’s specs. For this tutorial, the video I will be delivering is 320×240, so I will set my stage to 320×300 just to have a little extra room at the bottom of the stage and make space for the FLVPlayback component’s controls.
Create a new folder on your desktop, name it anything you like, and save your .fla document to this new folder.
Next thing we will do is set up a local file structure. Usually this would be on a remote server, but for this tutorial we will be testing right off of our own desktop machine. The folder I just created will contain my working .fla document (for tutorial purposes), a .swf file, html file, and the FLV Playback player’s skin .swf. Also, inside of that folder I will create another folder labeled “video”, and in this folder I will keep the .flv video file that I will be delivering, which is named “psworld.flv”.

The scripting that is used to make this work, while very similar, differs slightly between the FLVPlayback Component and the MediaDisplay Component. I will show you how to set the FLVPlayer first, followed by the MediaDisplay.
FLVPlayback Component.
Step 1
Open the Components window, Window>Components (Ctl+F7), under FLV PLayback - Player 8, click-and-drag the FLVPlayback component onto the stage in frame 1 of the “player” layer.

Step 2
Now, what we would usually do here to set a video path would be to open the Component Inspector (Window>Component Inspector or Alt+F7), and enter the path to our video right where it says “contentPath” , as shown below. The path from my .swf file to the video would be “video/psworld.flv”. With this path set, when you test the movie (Ctl+Enter), you should see the video play.



- Fade a Filter
- Fill Shortcuts
- Exact Center
- Keyboard Shortcut for Copying Layer Styles
- Copying Blend Modes










Photoshop
Illustrator
Indesign
Dreamweaver
Fireworks
Premiere
Flash
After Effects
Lightroom
Acrobat






