[Flashcoders] MovieClipLoader/loadMovie vs. digit on instance name

2006-12-09 Thread Wagner Amaral
Yesterday I was building a WindowManager class, and I wanted to assign random names to each created window. So I went for the obvious: var randName:String = String(Math.round( Math.random() * 100 )); var _newWin:Window = Window( _tgt.attachMovie(_linkage, newWin_ + randName,

Re: [Flashcoders] MovieClipLoader/loadMovie vs. digit on instance name

2006-12-09 Thread Alain Rousseau
Hi Wagner, INMHO, the best way to add your numbers to the name of MovieClip is to first define a variable as the base name of your mc, then add the number (id) to that base name. I do it like this : var baseName:String = newWin_; var mcID:Number = Math.round( Math.random() * 100 ); var

Re: [Flashcoders] MovieClipLoader/loadMovie vs. digit on instance name

2006-12-09 Thread T. Michael Keesey
On 12/9/06, Wagner Amaral [EMAIL PROTECTED] wrote: Yesterday I was building a WindowManager class, and I wanted to assign random names to each created window. So I went for the obvious: var randName:String = String(Math.round( Math.random() * 100 )); var _newWin:Window = Window(