You need to refer to a movie clip programmatically.
If you are creating the movie clip at authoring time, select the movie clip on stage and specify an instance name for it using the Property inspector. Then you can refer to it by that name via ActionScript.
We saw in the Introduction how to refer to movie
clips throughout your ActionScript code. But what names should you
myNestedMovieClip in the earlier examples
to refer to your own movie clips?
The instance name you use in your code must match the name of the movie clip instance on stage, not the name of the Library symbol from which the clip is derived. Therefore, you must set the clip’s instance name using the Property inspector before you can refer to it from ActionScript (see Figure 1-4). For example, if you’ve set the instance name of a movie clip to “circle_mc” using the Property inspector, you can control it via ActionScript:
circle_mc._xscale = 200;