Solved

Flash - Play until a certain frame

Posted on 2011-03-21
3
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
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…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

751 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