uramis
10-03-2005, 04:25 PM
hi, im having a strange problem... im trying to play a dynamically loaded flv. it works fine, but while its running, if I happen to call a setInteval or an onEnterFrame anywhere, the video stops running...
here is the code:
function start_video (v:String):Void {
var connection_nc:NetConnection = new NetConnection ();
connection_nc.connect (null);
var stream_ns:NetStream = new NetStream (connection_nc);
my_video.attachVideo (stream_ns);
stream_ns.play ("vid" + v + ".flv");
}
var interv:Number = setInterval (funct, 1000);
function funct () {
trace ("Hi");
}
thanksss
here is the code:
function start_video (v:String):Void {
var connection_nc:NetConnection = new NetConnection ();
connection_nc.connect (null);
var stream_ns:NetStream = new NetStream (connection_nc);
my_video.attachVideo (stream_ns);
stream_ns.play ("vid" + v + ".flv");
}
var interv:Number = setInterval (funct, 1000);
function funct () {
trace ("Hi");
}
thanksss