Now in order to make copies of the enemies we need to refer to the original sample enemy (in the library called ‘myRect’ – remember we tick on the ‘Export for ActionScript’ when we created the ‘myRect’ symbol? Take note on the class name on the Linkage section because that’s the class we are refering to. What do you mean no?). Here we create the new instance from ‘myRect’ with the name of ‘myRectIn2’
var myRectIn2:myRect = new myRect();
Now that we have the name of the second rectangle, we can reposition it like what we did with the first one.
myRectIn2.x = 200;
myRectIn2.y = 200;
Now the second rectangle is not gonna be displayed on the stage unless we add it into the stage thus….
whichever you prefer… they both work… which brings to the point that what I wrote here isn’t necessarily the only method to achieve similar results.
This article has been brief