> Refersh my memory. What was the name of that AS3 class method to get a class
> definition
> from a string? Something like getObjectByDefinition("MyClass") or something
> like that, but that's not it.
> Our proxy server is down and I can't Google it, and the help docs are no help.
>
> Basically, I'm tring to remember the AS3 method to dynamically instantiate a
> class from a string definition - i.e.
>
> var ClassDefinition:Class = getClassByDefinition("Apple");
> var newClassInstance:* = new ClassDefinition();
>
> Something like that, I've done it before, I just can't find the syntax or
> remember the method.
I think it's flash.utils.getDefinitionByName.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders