Search code examples
actionscript-3movieclip

Variable of type asterisk


var test:*;
test = sMC // Some movieClip exported for ActionScript
var f = new test;

Sorry if the question's a bit lame, but I begin to wonder, what does this asterisk, and the snippet mean?


Solution

  • The asterisk means the variable type is undefined, or a wildcard. Meaning you can define test as any sort of variable.