I have the following code:
var a= 1 + (function (x) { return x+1;} (2));
This is allowed in JavaScript, but in ActionScript, it's always show an error message, saying this line of code is wrong. I cannot find a documentation on ActionScript about this, anyone has any idea about it?
Thank you in advance!
I have a idea as : var a = 1+(function (x) {return x+1;}).call(function(x) {return x+1;},2); it works fine for this example. and the this is refering to a funciton which is exactly the same as the one before "call" string. the arguments.caller is the location the above "call(..)" happens, and the arguments.callee is refering to the function after "call" string. the arguments.length is 1. En...will this be fine?
It's solved, by modifying the SWF tags.^^