Skip to main content
Participant
June 9, 2020
Question

hello, i need help with action script code. i dont know how to solve it

  • June 9, 2020
  • 1 reply
  • 192 views

hello, i need help with action script code. i dont know how to solve it & i need to make sure to solve this before tomorrow!!

how to solve this coding in action script? 

 

it says 1021: duplicate funtion definition on this line.

function fl_ClickToGoToAndStopAtFrame_12(event:MouseEvent):void

 

stop();

btnnext5.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_9);

function fl_ClickToGoToNextFrame_9(event:MouseEvent):void
{
nextFrame(61);
}

stop();

btnprevious5.addEventListener(MouseEvent.CLICK, fl_ClickToGoToPreviousFrame_11);

function fl_ClickToGoToPreviousFrame_11(event:MouseEvent):void
{
prevFrame();
}

stop();

btnhome5.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_12);

function fl_ClickToGoToAndStopAtFrame_12(event:MouseEvent):void
{
gotoAndStop(1);
}

 

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    June 9, 2020

    Hi.

     

    Please verify if you don't have another function called fl_ClickToGoToAndStopAtFrame_12 in another frame.

     

     

    Regards,

    JC