Hi, I’ve been using AS2 for quite some time now, and I’m just starting to get to grips with AS3. However, I’m still having a few very basic problems.
All I want to do, is call a function.
This is how I use to do it - AS2:
function doThis() {
trace("You just called this function");
}
doThis();
Now this is what I’m having a problem with - AS3:
function doThis(event:MouseEvent):void {
trace("You just called this function");
}
doThis();
I get this error:
1136: Incorrect number of arguments. Expected 1.
This function is being called once a button has been pressed, but I wanted to be able to call the function with a little code too, i.e. when the animation starts.
Thank you.
Mark
Happy New year btw.