I’m new to AS3 so please excuse me if the question is a bit confusing.
I have 3 movieclips in my library with the Linkage names “Panel1”, “Panel2” and “Panel3”.
I want to create a new Array on my main timeline with the three movieclips.
i.e. var panelArray = new Array(Panel1, Panel2, Panel3);
How would I be able to do that?
if you want to add the movieClips to array then:
and you will be able to access them like:
if you need to add just class name to the array as you did it is good:
And when you want access them:
In the first array, the mc’s are created on adding them to the array, and when you accessing them you get the
DisplayObjectdirectly. In the second array the array holds just a names of the classes, from which you can create aDisplayObjectfor futher uses.