View Full Version : Use frames instead of screens but....
robapow
05-03-2004, 10:14 PM
A few people have suggested using frames/timeline method instead of mx2004 screens. I can't seem to get the screens to advance automatically after say 10seconds. If I use the timeline way, i can't slow it up enough to allow each frame to appear on the screen for ten seconds. Am I missing something. I've looked through the pdf's that came with the software and I am a bit confussed. Does anyone have an answer or a link to an example to hel pme learn. I need a gentle nudge!!
Cyanide
05-03-2004, 10:37 PM
If you want the timeline to wait at a specific frame you have to put stop(); at the top of the script for that frame. Then the movie will stop when it gets to that frame. It will then advance when you tell it to, using a command like gotoAndPlay(_currentframe + 1);. You can make it advance 1 frame every 10 seconds with something like:
//This creates an interval that fires every 10 seconds (10000 milliseconds).
//Each time the interval fires it plays the next frame in the movie.
if(!advance){
advance = setInterval(function(){ gotoAndPlay(_currentframe + 1)}, 10000);
}
Check out http://www.moock.org/asdg/home.html. Specificly, look at the fla files from the "playhead control" section. If you want to know more about ActionScript, that is an excellent place to start, even if you're using a newer version of Flash.
farafiro
05-04-2004, 02:16 AM
robapow
please try to make the most like questions in one thread
as most of yours were alike and about the screens
thanks
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.