Hi, > yes, i know but , who can instantiate a class via string from > variable?
Flex cannot load a class dynamically - you'll have to make sure that the class gets compiled into your SWF file. This can be achieved by referencing the class somewhere inside your code, e.g. function dependency():Void { // this function does nothing but // ensures that your class gets compiled in foo.bar.MyClass; } If you need to instantiate a class by its name then try using the findClass() method of the mx.utils.ClasSUtil class: import mx.utils.ClassUtil; var f:Function = ClassUtil.findClass("foo.bar.MyClass"); var myInstance = new f(); Dirk.