Hi Oskar!

Trace the type of the variable, if you're getting it from an XML, it
could easily be "object" instead of "string".

Cheers!

On 11/13/06, el oskitar <[EMAIL PROTECTED]> wrote:
Hi all,

I have a problem with Object.registerClass

this works fine!
//className hardcoded

var myClass = lib.botones.menu["class"];
                Object.registerClass    ("obj_ID", myClass );
                var   myObj  =   _root..attachMovie ("obj_ID","myObj",
_root.getNextHighestDepth( ));


but extrangely  this won't work!
//className passed by variable

var className = "class";
var myClass = lib.botones.menu[className];
                Object.registerClass    ("obj_ID", myClass );
                var   myObj  =   _root..attachMovie ("obj_ID","myObj",
_root.getNextHighestDepth( ));


Any idea for this extrange behavior?
_______________________________________________
[email protected]
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



--
Juan Delgado - Zárate
http://zarate.tv
http://dandolachapa.com
_______________________________________________
[email protected]
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