views:

19

answers:

1

example:

var c : Class = Sprite; //This can be random class such as movieclip/etc

var o = getDefintionByName(getQualifiedClassName(c));

this works, but in flash develop, it says that the variable 'o' has no type declaration

which basically means

var o : SOMETHING = getDefintionByName(getQualifiedClassName(c));

but how do i put that something there when i do not know what its coming because of random classes?

A: 

one solution would be using var o : * = getDefintionByName(getQualifiedClassName(c));

the asterick symbol is a temporary one, but it works

ayu