Re: [flexcoders] how to substitute the old attachmovie()?

2007-04-11 Thread Derek Vadneau
Just do it the same way you did it in AS2. In your code you are attaching a movie and giving it a name of nomeMenu+i. Do the same for your AS3 code - don't assign the value to a local variable. If you did that in the AS2 code, you'd end up with the same issue. Also, instead of removing the

[flexcoders] how to substitute the old attachmovie()?

2007-04-10 Thread herklano
i am migrating a project from AS2 to AS3 and had a dynamically built menu and submenus like: item1 | item2 | item3 subitem1-1 | subitem1-2 | subitem1-3 and i used the attachmovie to generate it and to get the main movieclip from the library... for (var i:Number=0; i menuRecordSet.length; i++)