You don't create a proxy clip in the 1st example.
mcTemp would be just a reference to the same clip, not a clone.
I preferer the 1st because it's cleaner.
Ps. you may want to change nCounter to this.getNextHighestDepth();
Stephen Ford <[EMAIL PROTECTED]> wrote: Which of the following two techniques
do you use when coding a similar (and common) process in actionscript:var
mcTemp:MovieClip = this.attachMovie("mcCircle", "mcCircle"+nCounter, nCounter,
oMain);mcTemp._x = Math.random()*600;mcTemp._y = Math.random()*400;
nCounter++;or --------------------------------this.attachMovie("mcCircle",
"mcCircle"+nCounter, nCounter, oMain);this["mcCircle"+nCounter]._x =
Math.random()*600;this["mcCircle"+nCounter]._y = Math.random()*400;
nCounter++;i.e: do you prefer to create a proxy clip when coding something like
this (first example).Thanks._______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
---------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question
on Yahoo! Answers.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com