ActionScript 2.0 in CS3 Professional:
stop();
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
**gotoAndPlay(6);**
}
**instanceName**.addEventListener("complete", listenerObject);
What this code does is when an .FLV finishes playing, the MC will go to frame 6 and play. The code works well but isn’t flawless which has left me scratching my head.
Depending on the quality of the movie (.flv) on various machines sometimes the movie will stop abruptly in the middle and then gotoAndPlay(6). I can run it 10 times in a row and it will do it maybe 2-3 times.
The .flv encoded movies are anywhere from 700 to 4800 in data-rate and they all act the same while looking more or less better/worse in quality depending on the data rate.
What in this code will listen to the movie for 100% of it to be played BEFORE going to gotoAndPlay(6)?
I see “complete” but is there anything I can substitute “complete” with that will measure 100% of the movie’s length before gotoAndPlay(6)?