Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Stop action script with advanced layers needed

Community Beginner ,
Mar 07, 2023 Mar 07, 2023

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.

TOPICS
ActionScript , Error

Views

383
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2023 Mar 07, 2023

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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 07, 2023 Mar 07, 2023

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?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2023 Mar 07, 2023

Copy link to clipboard

Copied

if they are animated via timeline, yes but that would require more than converting a bitmap to a symbol.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2023 Mar 07, 2023

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()

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 07, 2023 Mar 07, 2023

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 07, 2023 Mar 07, 2023

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!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 07, 2023 Mar 07, 2023

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines