Code-free Flash Video
It never ceases to amaze me how many people ask for an easy way to get Flash video up on their pages. If you use Flash CS3, the entire process is code-free. Assuming you have an FLV file handy, here's how:
Over is a dangerous choice because the user needs to roll over the video to reveal the skin. If there is something in the first frame of the video, in a web page, that video may be mistaken for an image.
Image 4: If you see this, life is a wonderful thing!
If you are planning to add this to a web page you need to trim off the extra space. Just be aware there is a really big "gotcha" here so pay attention:
At this point you can save and publish the SWF. Just keep in mind that the SWF, the FLV and the Skin.swf files must be in the same directory.
There you have it.... code free Flash Video.
- Launch Flash CS3 and open a new ActionScript 3.o document.
- When the new document opens select Window>Components to open the Components panel.
- Open the Video components and drag a copy of the FLVPlayback component to the stage. When you release the mouse you will most likely see a black square with an FLV icon and a skin under the square.
- To ensure everything will work, save the open Flash document to the same folder as the video.
- Select the Component on the stage and click the Parameters tab in the Component Inspector. The Parameters determine how the component will play the movie, what video is being played and even the skin and skin color to be used to control the video.
- Seeing as how there already is a skin, let's give the user the opportunity to play the video. Double click the true value in the autoPlay parameter and change it to false.
- The next step is to determine the skin.Double click the skin value in the skin parameter to open the Select Skin dialog box.
Over is a dangerous choice because the user needs to roll over the video to reveal the skin. If there is something in the first frame of the video, in a web page, that video may be mistaken for an image.
- From the skin pop down select SkinUnderAllNoFulNoCaption.swf. This just ignores adding the Full Screen and Captioning buttons to the controller. You will notice you are being told the minimum width for this controller is 280 pixels. This isn't an issue because the video I am using is 320 pixels wide by 240 pixels high.
- Click the Color chip to open the Color Picker and select a skin color.
- Click OK to close the Select Skin dialog box.
- Scroll down the parameters to the source parameter. Double click the value to open the Content Path dialog box.
- Click the browse button- it looks like a folder- and navigate to the folder containing the FLV.
- Double click the FLV to select it check the path. If you see a path like the one shown in Image 3, you are in for a world of "hurt". This tells you that you haven't saved the fla to the same folder as the FLV. That value will get "hard-wired" into the swf and the odds are about 135% the video will not play.
Image 4: If you see this, life is a wonderful thing!
- Click OK to close the dialog box, save the FLA and test the movie. You should be in the video game!
If you are planning to add this to a web page you need to trim off the extra space. Just be aware there is a really big "gotcha" here so pay attention:
- Select Modify>Document and when the Document Properties dialog box opens, click the Contents radio button. Click OK to accept the change.
- Return to the Document Properties dialog box and set the height value to 285. Click OK. You should see a piece of the stage under the skin's shadow.
At this point you can save and publish the SWF. Just keep in mind that the SWF, the FLV and the Skin.swf files must be in the same directory.
There you have it.... code free Flash Video.

0 Comments:
Post a Comment
<< Home