Question
Scene 1, Layer 'Actions', Frame 1, 1084: Syntax error: expecting rightparen before colon.
I'm new to Animate and I've got this code and this error that keeps repeating.
Scene 1, Layer 'Actions', Frame 1, Line 78, Column 20 1084: Syntax error: expecting rightparen before colon.This is the code I have
function timing(evt:TimerEvent):void
{
timeStep += 1; //increment counter
if (run) //only if run = true is shift key has been pressed
{
moveCharacter(evt:KeyboardEvent)
{
timeStep = 0; //reset the counter
}
}
else if (timeStep == 2)
{
moveCharacter(evt:KeyboardEvent)
{
timeStep = 0; //reset the counter
}
}
}