Copy link to clipboard
Copied
Hey all, hopefully this is a simple question but I have yet to find an answer to it:
I'm trying to find the correct code that will stop the animation at the end of the playback, while using advanced layers. I'm using a specific project that needs me to use layer parenting, there's not really a work around I can think of.
Currently using "this.stop();" - which has worked before but once currently has stopped, I believe this is relating to the fact I turned on advanced layers.
Thanks for help.
Copy link to clipboard
Copied
that should still stop whatever timeline to which it's attached. it won't stop other timelines and that might be other layers in your case. test
Copy link to clipboard
Copied
Thanks for your prompt reply - it's appreciated. When I turned on advanced layers it converted all my images to symbols - and this is an image heavy project (I turned on advanced layers mid way through project, first time using them) - do I need to go through and add the stop script to each symbol's timeline?
Copy link to clipboard
Copied
if they are animated via timeline, yes but that would require more than converting a bitmap to a symbol.
Copy link to clipboard
Copied
i just tested. nothing special about advanced layers being stopped.
you need to pinpoint what does not stop when you use this.stop()
Copy link to clipboard
Copied
So if I want the final frame to hold and the buttons to be clickable, I will need to input that? That's beyond my scope for script but good to know.
Copy link to clipboard
Copied
If you have any guidance on this, it would be appreciated. The script is currently written out as follows on the last frame:
this.stop()
/* Stop at This Frame
The Animate timeline will stop/pause at the frame where you insert this code.
Can also be used to stop/pause the timeline of movieclips.
*/
But in the .swf it instantly loops. I don't have any movie clips, just buttons text and symbols/images. I'm coming onto this with the script written by someone else (pulled from the net) and am an absolute novice at all things code.
Thanks for your assistance!
Copy link to clipboard
Copied
do you think the frame that contains that code plays more than once?
if so, are you publishing a html5/canvas project or as3 project?