- FREE FLASH ACTIONSCRIPT 3.0 VIDEO TUTORIALS HOW TO
- FREE FLASH ACTIONSCRIPT 3.0 VIDEO TUTORIALS MOVIE
FREE FLASH ACTIONSCRIPT 3.0 VIDEO TUTORIALS MOVIE
Test the movie by pressing ctrl + enter (pc) or cmd + return (mac) on your keyboard. The object becomes less visible as the value approaches 0.ĥ. You can assign a value from 0 to 1 for the alpha property. This reduces the alpha property value of circle2_mc to. Then add one more line below the first 2 lines of code: The scaleX property controls the horizontal scaling, while the scaleY property controls the vertical scaling.Ĥ. These lines of code will scale up the circle1_mc instance to 2 times its original size (or 200%). In the Script Pane of the Actions Panel, type in the following lines of code: You must convert the shape into a movie clip or button symbol in order to be able to give it an instance name.ģ. Convert this circle into a movie clip symbol. Create a new Flash ActionScript 3 document.ģ.
FREE FLASH ACTIONSCRIPT 3.0 VIDEO TUTORIALS HOW TO
In the following exercise, you will learn how to assign instance names to display objects.ġ. But instances of movie clips and buttons, as well as text fields that are of the dynamic, input and all TLF types can be given instance names. NOTE: Instances of graphic symbols and static text fields cannot be used with ActionScript, because they cannot be given instance names. These names are referred to as instance names.
Can you send me that document from our previous meeting?" In ActionScript, to communicate with these instances on the stage, we must address them by their names as well. When we communicate with real people, we address them by name - "Hey, John. In order to be able to "communicate" with these instances, we must give them names.
We refer to each individual display object on the stage as an instance - it can be a button, a movie clip or a text field. change color, change size, change location, become clickable, etc.). Think of ActionScript as the language that we use so that we can "communicate" with these objects and tell them what to do (e.g. I've mentioned that we can control display objects using ActionScript. Let's say that you've got a display object on the stage (such as an instance of a movie clip symbol that you created), how can you use ActionScript 3 in order to make that object change in size? By the end of this lesson, that is something that you should already be able to do.
In this lesson, I'm going to discuss the concept of instance names and how they are needed in ActionScript in order to control display objects (objects that can be seen on the stage).