|
journal
all | Rob is 20,355 days old today. |
|
Entries this day: Breakthrough Fastwalkers.com Joost Zzz_flash Breakthrough 11:50am JST Wednesday 21 February 2007 (day 13482) Just had a good breakthrough in flash coding. I was trying for some days, but not until this morning, thanks to Marlon Valenzuela aka Sophistikat, was I able to figure out when a loaded movie ends. Now I can. My code:
// these are the movies in the order we will load them.
swfArray = new Array("movie1.swf","movie2.swf","movie3.swf");
var next_movie:Number = 0; // start with the first movie and roll on from there
this.createEmptyMovieClip("targ1_mc", 1);
targ1_mc.loadMovie(swfArray[next_movie]);
this.onEnterFrame = function(){
if (targ1_mc._totalframes == targ1_mc._currentframe) { // this is the key
next_movie ++;
targ1_mc.loadMovie(swfArray[next_movie]);
trace("next movie please");
}else{
trace(targ1_mc._currentframe);
}
}
There is an obvious issue with running over the end of the array, but that's outside the scope of my original problem. permalinkFastwalkers.com 3:06pm JST Wednesday 21 February 2007 (day 13482) I've just finished watching Fastwalkers, a documentary basically proving we are not alone, and that information of alien civilizations is being hid from the masses. I highly recommend the movie. permalinkJoost 1:09pm JST Wednesday 21 February 2007 (day 13482) I've joost applied for a joost account. It's joost the thing I need to joost waste more time online. But I joostify it by saying I joost want to watch Jon Stewart and Stephen Colbert vids. permalinkZzz flash 1:41am JST Thursday 22 February 2007 (day 13483) Ugh. Falling asleep working on flash. permalink |