Thanks to everyone who chimed in with the answer!
Seems like there is a little disagreement between getDefinitionByName and
getClassByName.
>From some basic searches it looks like getClassByName has been replaced by
getDefinitionByName, and I could only find
flash.utils.getDefinitionByNamein the
import flash.utils.getDefinitionByName;
for (var i:uint = 0; i < 30; ++i) {
var sym:MovieClip = new (getDefinitionByName("sym" + i) as Class)();
// rest
}
On 3/4/08, jonathan howe <[EMAIL PROTECTED]> wrote:
> Sorry - somehow triggered the send mail hotkey before I was finished:
>
> On Tue
Hi Jonathon,
Your AS2 method is tried and true. Here's the new and improved AS3 way
of doing it.
for (var i:Number = 0; i < 30; i ++) {
// build the String name
var symbol:String = "sym" + i;
// locate the class
var symbolClass:Class = getDefinitionByName(symbol) as Class;
// in
Sorry - somehow triggered the send mail hotkey before I was finished:
On Tue, Mar 4, 2008 at 3:25 PM, jonathan howe <[EMAIL PROTECTED]>
wrote:
>
>
> Imagine I have in my library a series of MovieClips with linkage
> identifiers like so:
>
> sym0
> sym1
> sym2
> ...
> sym29
>
> In AS2, if I wanted
4 matches
Mail list logo