Skip to main content
Participating Frequently
Mar 28, 2023 11:21 AM UTC
Question

when i code stop();

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

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    13 replies

    JoãoCésar17023019
    Community Expert
    Community Expert
    Mar 28, 2023 11:27 AM UTC

    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

    Translate
    Participating Frequently
    Mar 28, 2023 11:33 AM UTC

    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");
    }

     

    Translate
    JoãoCésar17023019
    Community Expert
    Community Expert
    Mar 28, 2023 11:46 AM UTC

    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?

    Translate