Solved

Flash - Play until a certain frame

Posted on 2011-03-21
3
401 Views
Last Modified: 2013-11-11
Hello,

I'm trying to play a timeline until a certain frame.
I use "symbol.gotoandplay(40)" to play from frame 40 till the end.
But I need code to play from frame 1 to 40.

please help, thank you :)
0
Comment
Question by:ErnstJacobs
3 Comments
 
LVL 29

Accepted Solution

by:
dgofman earned 250 total points
ID: 35185746
add "stop()" function on frame 40
and run "gotoAndPlay(1)
0
 
LVL 1

Expert Comment

by:smabudhahir
ID: 35187120
Adding code 'stop()' at frame 40 and executing 'symbol.gotoAndPlay(40)' will always stop the animation at 40.

You should add the gotoAndFrame(1) in the 39th frame within the symbol. so it will loop through 1 and 39 whereas  'symbol.gotoAndPlay(40)' will continue your animation till the end.
0
 

Author Closing Comment

by:ErnstJacobs
ID: 35188401
Thank you both, but I have to go with the first one, that was actually the most simple.

It now works with a stop at frame 39, and I've put symbol.gotoandplay(1), and it stops at 39 so it works great now :)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question