that was typo, i'm a bit farther...
in the code , the output window shows the first billboard swf frames ticking
down to the end.
questions:
1.) the second movie plays but i cant seem to test the current frame?
2.) how can i loop in a different way, at will say in a finction to test the
movie location?
there must be an easier way to do the following:
obtain the url list, for now I'll just populate the array,
eventually code a recordset to feed the urls dynamically.
load and play the frst swf from frame 2 (frame i is the stopped state in the
loaded swf's)
while the first is playing, start loading the second, in another mc
when the first swf is finished (ie. _currentframe == _totalframes)
play the next same way and repeat untill the last swf in the array
then loop the playback to the top ( ie if say a loop parameter is true).
to play the entire list again.....
function initBillboard(url:String):Boolean {
var myVariable:Boolean;
trace (url);
billboard.unload;
billboard.loadMovie(url);
billboard._y = 0;
billboard._x = 0;
billboard._xscale = 100;
billboard._yscale = 100;
return (true);
}
var myArray:Array = new Array();
myArray.push("
http://site.com/swf1.swf");
myArray.push("
http://site.com/swf2.swf");
myArray.push("
http://site.com/swf3.swf");
myArray.push("
http://site.com/swf4.swf");
initBillboard(myArray[0]);
_root.onEnterFrame = function() {
trace("current frame : " + billboard._currentframe);
trace("movie length : " + billboard._totalframes);
if (billboard._currentframe == 1) {
billboard.gotoAndPlay(2);
frameLength = billboard._totalframes;
trace("frameLength " + frameLength);
}
if (billboard._currentframe == frameLength) {
trace("first done");
initBillboard(myArray[1]);
trace("2-current frame : " + billboard._currentframe);
trace("2-movie length : " + billboard._totalframes);
if (billboard._currentframe == 1) {
billboard.gotoAndPlay(2);
frameLength = billboard._totalframes;
trace("frameLength " + frameLength);
}
delete this.onEnterFrame;
} end if
}; /* end f
stop();