PDA

View Full Version : [AS2] Looping FLV stops after about 5 mins!?!?


burnttoast
02-27-2009, 01:00 PM
Hi guys, this is my first Post! I am new to Flash, and I have been getting help to make a SWF banner which plays an FLV on an infinite loop.
It has a preloader using NSnetstream, and when the FLV is loaded it goes to frame 2, where my FLV starts playing, using the FLVplayback component.

You can see it here: www.mediarenegades.co.uk

The FLVplayback object has this action script 3 added to make it fade in on the first play only, and then just loop.

onClipEvent(load) {
this._alpha = 0;
this.dir = -1*2;
}
onClipEvent(enterFrame) {
if (Math.round(this._alpha) == 0 ){
this.dir *= -1; // change the direction of the fade
}
this._alpha += this.dir;
}
on (complete){
this.autoRewind=true;
this.play();
}


This is all working really nicely, except that after maybe 4 or 5 minutes the video abruptly stops and everything goes black. This never happened before I added the alpha fade code.

Any ideas guys??