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,
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
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(
3 matches
Mail list logo