- #Adobe flash actionscript 3.0 parts of code skin#
- #Adobe flash actionscript 3.0 parts of code code#
- #Adobe flash actionscript 3.0 parts of code download#
Now let's look at the Components palette again. Setting the Parameters of the FLV component When you return to the stage, you will find that the FLVPlayback component has resized itself to match the size of the sample movie. Be sure to select the Match Source FLV Dimensions check box. With the video still selected, click on the Parameters tab again and scroll down to the property labeled "source." Double-click in the empty field to bring up the dialog box that will let you point the FLVPlayback component to the FLV file you downloaded earlier. Now we need to tell the FLVPlayback component which FLV file to play. ( Figure F)įigure F Giving the FLVPlayback component an instance name With the Video still selected on the stage, click on the Properties tab and in the field labeled, click and type the name "myvideo" (without the quotation marks) and press the Enter key. Next, your video component needs an instance name, which will allow ActionScript to call it.
#Adobe flash actionscript 3.0 parts of code skin#
From the Skin pull-down menu, select None and click OK to remove the generic controls on our FLVPlayback component ( Figure E).įigure E Removing the default video controls from the FLVPlayback component
![adobe flash actionscript 3.0 parts of code adobe flash actionscript 3.0 parts of code](https://i.ytimg.com/vi/i8F_FDY0z34/maxresdefault.jpg)
In the dialog box that appears, double-click the Skin option to bring up the Skin selector dialog box. Click on the video component on the stage to select it and then go down to the Properties palette at the bottom of the screen and click on the Parameters tab. we're building our own custom video player, here! Let's get rid of those things. A large black box with some controls should now sit on the stage ( Figure D).įlash was kind enough to provide you with a set of controls, but hey. Click the cross to expand the Video Component tree, if you need to.įrom the Components palette, click and drag the FLVPlayback component to the stage. The Components palette will appear, as in Figure C. Select the "objects" layer to make it the active layer, then go up to the Window menu at the top of the screen and select the Components option. Be certain to save it in the same directory as the sample_movie.flv file you downloaded earlier. This is also a good time to save your file. This will lock the ActionScript layer and prevent you from placing objects on it, as in Figure B. Then, rename the top layer "ActionScript" and rename the bottom layer "Objects." On the ActionScript layer, click the dot under the padlock icon.
#Adobe flash actionscript 3.0 parts of code code#
It also prevents you (or someone else, for that matter) from accidentally deleting ActionScript code if you need to throw away a layer that contains objects you wish to delete.Īt the bottom of the Layers palette, click the New Layer button. This makes it easier for another developer to look at your file and know where to look to modify the code. It is widely considered a good idea among Flash developers that you should keep the objects in your Flash file on a layer that is separate from an empty layer that will hold your ActionScript code. Figure A The default layout of the Flash CS3 workspaceĪt the top of the screen, you will see the Layers palette.
![adobe flash actionscript 3.0 parts of code adobe flash actionscript 3.0 parts of code](https://images-na.ssl-images-amazon.com/images/I/41JLnVf1GlL._SX407_BO1,204,203,200_.jpg)
This blog post is also available as a TechRepublic download. This is important Flash's video components are more limited if your Flash File is an ActionScript 2.0 type. In the dialog box that appears, select the Type: Flash File ActionScript 3.0. Let's start by opening Flash CS3 and creating a new file. Also, you'll be using a royalty-free FLV file to complete the exercise.
#Adobe flash actionscript 3.0 parts of code download#
If you don't own a copy of Flash CS3, you can download a fully functioning 30-day trial. In fact, don't be surprised if you find yourself jumping head first into ActionScript authoring after you see how easy it is. Building a custom FLV player is largely a matter of dragging and dropping Flash's Component objects into a document and scripting only a line or two of very simple ActionScript code. If you have never used Flash before, don't be intimidated. (Have you ever been to ? You may have heard of it.) The latest version of Flash, CS3, makes it extremely easy to build a custom video player to show off your Flash Video (.FLV) files. Adobe Flash's video technology is all over the Web and is an example of how Internet video has finally arrived after overcoming many technological hurdles during the past decade.