Solved

Flash - Play until a certain frame

Posted on 2011-03-21
3
402 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

821 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