You do not have to import the class nor declare any variables with its
type. But just access it.
_____
el oskitar wrote:
I solved the problem, I need to import the class and force a new variable
with this type before the new object declaration,
So, Object.registerClass is not necessary anymore
// import lib.buttons.test;
// var force:test
lib.buttons.test;
var clase = "test";
var ap = new (lib.buttons[clase]);//works!
var ap = new lib.buttons[clase]();//works!
Good luck,
--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books<http://www.FumioNonaka.com/Books/index.html>
Flash community<http://F-site.org/>
_______________________________________________
[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