[flexcoders] String cann't create dynamic Class without instance!

2006-02-17 Thread flexhtoo
Why flash.util.getClassByName(param:String):Class This method counld not load when this class has no instance. But It has pre-creation instance, it can load. // Sample codes public function load(param:String):Object { var ClassRef:Class = getClassByName(param); var instance:Object =

Re: [flexcoders] String cann't create dynamic Class without instance!

2006-02-17 Thread feiy
hi: As3 can not load class dynamic your code work ok because you create a instance,that make the compile the class into swf,so you can loadClass(someClass).2006/2/17, flexhtoo [EMAIL PROTECTED]: Why flash.util.getClassByName(param:String):Class This method counld not load when this