How can i pass arguments to the function that i call in addFrameScript ?
This does not work:
mc.addFrameScript(mc.totalFrames-1,myFunction(2));
private function myFunction(e:int):void
{
trace(e);
}
The function is called on the first Frame, and is not called again!
Thanks