Copy link to clipboard
Copied
When i code stop () ; for my button to not loop, it also stop all my motion in the scenes.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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");
}
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
If you stop the timeline in the screenshot, those tweens will not happen.
Maybe what you need is to place those tweens in a separate Movie Clip instance because Movie Clips can play independently from the parent timeline.
Copy link to clipboard
Copied
you don't need a stop() to prevent a button from looping.
do you mean you're trying to stop a movieclip or graphic symbol from looping?
Copy link to clipboard
Copied
Because if i don't use the stop code the scene will keep on looping, what i want is for the user to click on the button then the only change to another scene, but if i add stop () the objects motion will stop as well
Copy link to clipboard
Copied
if your objects are graphic symbols on the stopped timeline, that's expected.
if the objects are movieclips on the stopped timeline, they'll continue to play.
Copy link to clipboard
Copied
Owww ! okay i will try
Copy link to clipboard
Copied
Hmmm is still not working
Copy link to clipboard
Copied
what exactly is not working?
Copy link to clipboard
Copied
The motion of the characters
Copy link to clipboard
Copied
if the characters are animated on the timeline with the stop, that animation is going to stop.
if the characters are animated on a different timeline and they are graphic symbols, their animation is going to stop.
if the characters are animated on a different timeline and they are movieclip symbols, their animation will not stop.