Thanks, I ended up doing this though...

var ClassReference:Class = getDefinitionByName("com.foo.view.playerSkins." +
aTopNavItems[i].classType) as Class;
this[aTopNavItems[i].class_id] = new ClassReference();

cheers, MaTT

On 7/26/07, Jake Prime <[EMAIL PROTECTED]> wrote:

I'm not sure about the actual code to instantiate, however make sure
that the class you are creating is actually compiled in the first
place. If it is not explicitly mentioned in your code somewhere it
will not be compiled and will not be able to be created at run-time.

jake

On 26/07/07, Matt Muller <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to instantiate a new class object from a xml attribute
which
> is a string, but its not having any of it.
> I've tried casting the string to an object and also using
this['class_id']
> etc but no luck.
>
> Does someone have a solution?
>
> Thanks,
>
> MaTT
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to