By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,825 Members | 1,697 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,825 IT Pros & Developers. It's quick & easy.

Scoping Issue on Main Timeline?

P: 4
I have a movieclip with 15 frame of animation nested on the main timeline. I want to code a delay on the nested clip so that when the playhead reaches the final frame, the nest clip will stop or freeze for several seconds. The problem, I think, is the main timeline is only 1 frame, thus my code does not persist long enough to recognize that playhead on the nested clip ended. here's my code:

main timeline

if (nestedClip._currentframes == nestedClip._totalframes) {
nestedClip.stop();
}

thanks in advance
May 9 '07 #1
Share this Question
Share on Google+
2 Replies


Motoma
Expert 2.5K+
P: 3,235
This may be as simple as setting a stop() on the main timeline's frame.
I have a movieclip with 15 frame of animation nested on the main timeline. I want to code a delay on the nested clip so that when the playhead reaches the final frame, the nest clip will stop or freeze for several seconds. The problem, I think, is the main timeline is only 1 frame, thus my code does not persist long enough to recognize that playhead on the nested clip ended. here's my code:

main timeline

if (nestedClip._currentframes == nestedClip._totalframes) {
nestedClip.stop();
}

thanks in advance
May 9 '07 #2

P: 4
I thought it was "_currentframe" ... no "s."

that might be breaking your function right there.

Also, to pause for a set amount of time will require a variable to be declared and set, and a counter/timer function that retrieves that variable. I can't access Flash from the computer I'm on, but I'm working on something similar (timer-controlled playback of a tutorial, an earlier post in this forum which people have completely ignored) and I actually figured it out myself. If you want, I can upload my script here when I get to work.

Let me know...
May 16 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.