Never really tried that, but an interesting question!
Here's all I got so far:
var c:Class = getDefinitionByName("MyClass") as Class; // or: var c:Class =
MyClass;
trace( c["parse"]("false") );
I'll keep trying, maybe I can find a cleaner way
On Mon, Jun 23, 2008 at 11:16 PM, Patrick Matte | BLITZ <
[EMAIL PROTECTED]> wrote:
> Does anybody know if it's possible to call a static method of a reference
> to a class created with getDefinitionByName without actually creating an
> instance of the object?
>
>
> Something like this simple example:
>
> var ClassReference:Class = getDefinitionByName("Test") as Class;
>
> var bool:Boolean = ClassReference.parse("false"); //would return false;
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders