I have the following function first called with a button click.
function chooseRosaryIN(evt:Event)
{
TweenLite.to(chooseRosary, 3, {y:chooseRosaryY, ease:Cubic.easeOut});
}
Later, if I want to call that same function as a regular function call how do I do that? Can it be done? for example if I call this chooseRosaryIN();
I get this error:
Scene 1, Layer ‘Functions’, Frame 1, Line 227 1136: Incorrect number of arguments. Expected 1.
I would rather not code two functions just to call this tween. Any ideas? Thanks
Change requested argument to null :
You can also use ‘… args’ :