Using dot syntax to modify properties in an instance


show more Using dot syntax to modify properties in an instance provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training show less
please wait ...

Using dot syntax to modify properties in an instance

To modify an instance using ActionScript, you can use something called dot syntax. Don't let the name scare you though; dot syntax is simple and easy to learn, even for the newest programmers. On the stage I have an instance of a movie clip called boarder_mc. Make sure to create a movie clip instance and name it, just like mine is named here. Let's go to the first keyframe in the actions layer and open up the Actions panel. Dot syntax simply means you can modify an object's properties by typing a dot. The real special thing about dot syntax in Flash is that you can get code hinting when typing a dot.

To get code hinting, I am going to make a variable to hold the boarder on the stage. Now this may seem a little bit counterintuitive, because we have already given it an instance name, and I am not going to directly use that instance name to modify the boarder. I will show you why in just a second. Type var and then a space, and we will call this boarder, different from boarder_mc,...

Using dot syntax to modify properties in an instance
Video duration: 3m 25s 7h 8m Beginner Updated May 23, 2012

Viewers:

Using dot syntax to modify properties in an instance provides you with in-depth training on Developer. Taught by Todd Perkins as part of the ActionScript 3.0 in Flash Professional CS5 Essential Training

please wait ...