I prefer the first one, the main advantages for me is that you can use
code completion in most of actionscript editors, the code is cleaner and
the compiler knows the type of the object when you try to assign a value
to its property _x.
Stephen Ford escribió:
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
_______________________________________________
[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