This content has been marked as final. Show 3 replies
The Flash class files like transition manager classes will not allow us to use the functions name by strings. You have to mentions the functions name directly.
Better , if you want to make this for so many transition , use the switch case method and assign the function directly in the cases.
The import statement doesn't import anything. It just enables you to not have to type the fully qualified path every time you reference the class (pretty ridiculous that you don't know that...).
will force the compiler to include the class.
this is work ...
I used the functions named by strings, but if i use varialble in place of literaly string it is not work ...
Now i know that "the import statement doesn't import anything" so ...
how can create object instanced dynamic...
for example i have an class wich is named "TestClass"
It's name is contained in string variable. ...
there is a class in "Utils" wich is named "ClassFinder". This class has a method "findClass" wich is searching in _globals for references to constructors ... i can not use this if the references to constructor is not in _globals.
please without switch methods :)