flash timeline
- Started
- Last post
- 18 Responses
- fixate
quick question.
I want to do an action which stops the timeline for a certain amount of seconds and then keeps playing.
Anyone know one.
- SP™0
go fer it.
- fixate0
what?
does anyone know it?
- yarsrevenge0
sure... all you do is stop your movie where you want it to... then put everything inside a movieclip... then have another movie clip sitting on the main time line as well and put as many frames as you want for this delay to happen... then at the end of those frames you put an action that tells the first movie clip to go to the frame after your stop action... and VIOLA!
- Peter0
if you're not into actionscript that much, there is a simple way to do it in "normal mode":
1. stop your movie
2. at the frame you stopped it, put an empty movie clip
3. in that movie clip, add an empty keyframe "some seconds" into the movie
4. for that keyframe, put a "tell target" and point it to the main timeline. This is easy, you can basically select it using that nifty little target box (in normal mode)
5. under that tell target - put a play action
... and that's it. Adjust the time you want it to halt by putting the keyframe in that movieclip a few frames down (or up)
- rh0
- unknown0
oh my god you guys crack me up...
//3000 = 3 seconds
loadInterval = setInterval(myTimer, 3000);function myTimer() {
myClip.gotoAndPlay(x)
}
- Peter0
why, actually? The guy might not know as good scripting as you do.
- 4cY0
word, Peter.
- unknown0
it cracks me up because you all present these deprecated, convoluted, error-prone ways to create a timer in Flash... when spending 5 minutes learning 2 lines of code solves the problem.
BTW intervals are flash MX and newer.
- 4cY0
thank you, chewbacca.
- fixate0
word, chewbacca..
you guys crack me up to.
I knew there were cheat ways around it. I wanted the more effiecient method.tnks chew-fatter
- 4cY0
well that's nice to say to some people trying to help you.
- rh0
Actually Chewy, setInterval will repeat the function call every 3 seconds. The initial question sounded like it only wanted one pause.
Who cares, though, as long as something works.
- coop0
http://moock.org/asdg/codedepot/…
wait at frame smartclip.
This little thing is handy for screensavers and stuff...
- unknown0
oops, yeah ... I lifted this from my loader class and snipped too many lines. Hopefully you people are reading the help files:
function myTimer() {
myClip.gotoAndPlay(x)
clearInterval(loadInterval)
}
- fixate0
thanks for the fix.
i did only want it to pause for a certain amount of time and then go to a new frame. all good now..
sheesh you guys are great.
- CyBrainX0
I will vouch for the link that rh put down:
http://www.macromedia.com/suppor…
I've been using it consitently for 2 years and it never fails.
- Mick0
No no my way is better, no yours sucks, wait there's a better way you all suck.........
Who wouldda thunk - several ways to do something in flash ;-)