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? _______________________________________________ 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