Microsoft
Software
Hardware
Network
Question : How do I make a loop in actionscript 3 that will add several new instances of a graphic from the library
I have just updated my flash version and I am having trouble getting used to actionscript 3.
I want to create a loop that will load several instances of the same graphic. So far I have managed to load 1 instance using this code:
var myMark:mark_graph = new mark_graph();
this.addChild(myStage);
myStage.x = 25;
myStage.y = 55;
i have tried putting this inside a for loop e.g.:
var count:int = 10;
var i:int = 5;
for(i = 5; i < count; i++){
// code here //
}
My problem is that I dont know how to create the instance names dynamically so when I include the first code inside my for loop it does nothing.
Hopefully this will make sense to someone :). Many thanks in advance for any help you can give
Answer : How do I make a loop in actionscript 3 that will add several new instances of a graphic from the library
Hi,
You could use an array for your instances!
Random Solutions
lots of messages getting stored in the incoming queue directory var/spool/mqueue.in
run the code at startup
Shell / sql script to check Oracle current number of processes used : ORA-00020 00018 exceeded
Automatically Install ActiveX Control only from a specific Site
chmod -R - how to give group the same permissions as owner has for all sibdirs/files
All Options tabs in Word 2002 are blank
Confused on formulas for KEI, KOI and KFI
Restore Exchange 2003 mailboxes
How to delete locked Windows install folders?
Error ID: 5018 (0000139a) error in Exchange 2003 Cluster - System Attendant