Actionscript Code:
class Example
{
var methodExpression = function() {
trace("hello");
}
function methodStatement() {}
}
var myEx:Example = new Example();
myEx.methodExpression();
myEx.methodStatement();
I just put the above script in the frame. I could't get the trace output. Its showing error that "1131: Classes must not be nested." What's the solution for this error. It should be there in *.as file? I got this script from flash help guide. If it should be in *.as file means they should mention package also know. pls help me guys.....