Duplicate function to another scene
Hi everyone,
I've got a problem with function. I have 3 scenes with simple navigation frames, next button/previous button. In Scene 1 I can navigate to next/previous frame by keyboard buttons, right/left. I must copy this function to Scene 2 and Scene 3. How Can I do it? When I copy this function to Scene 2 I have error with duplicate function. Change name function not resolve my problem.
function fl_changeSlideKeyboard(evt:KeyboardEvent):void
{
if(evt.keyCode == 37)
{
if (currentFrame>0)
{
prevFrame();
}
}
else if (evt.keyCode == 39 || evt.keyCode == 32)
{
if (currentFrame<5)
{
nextFrame();
}
}
}
