Skip to main content
Participating Frequently
March 28, 2023
Question

when i code stop();

  • March 28, 2023
  • 1 reply
  • 478 views

When i code stop () ; for my button to not loop, it also stop all my motion in the scenes.

 

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 28, 2023

    Hi.

     

    Can you provide more details?

     

    Is this HTML5 Canvas or AS3?

     

    A simple stop command shouldn't be able to stop all motion in a timeline/scene.

     

    Probably you're getting some error and the error is the responsible for interrupting other things happening.

     

    Please let us know.

     

    Regards,

    JC

    Participating Frequently
    March 28, 2023

    Is AS3, In this scene it is a question and there is two answer button leading to two scene saying that if their answer is right or wrong.

    But in this question scene there is motion in it , after i code stop () ; it just stop all the motion in my scene

    Cat_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWrong);

    function fl_ClickToGoToWrong(event:MouseEvent):void
    {
    MovieClip(this.root).gotoAndStop(2, "Wrong");
    }

     

    Fox_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToRight);

    function fl_ClickToGoToRight(event:MouseEvent):void
    {
    MovieClip(this.root).gotoAndStop(3, "Right");
    }

     

    JoãoCésar17023019
    Community Expert
    Community Expert
    March 28, 2023

    Thanks for the info.

     

    Does this motion happen independently in a different container or does it depend on the main timeline to be played?

     

    Can you show one or more screenshots of how your FLA is organized?