Hi,
I am trying to get an external flv file to loop but cant get it to work.
My code is...
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachNetStream(ns);
ns.play("flv_file.flv");
This is working fine but I want the flv clip to loop. I have done some searching and have found several solutions which depend on listening for a NetStream.Play.Stop event but whenever i try to access this info I get errors.
Using the code...
Code:
ns.onStatus = function(info){
trace("info="+info.code);
if (info.code == "NetStream.Play.Stop") {
ns.seek(0)
ns.play("flv_file.flv");
}
}
I get the error...
1178: Attempted access of inaccessible property onStatus through a reference with static type flash.net:NetStream.
I am publishing the movie with flash 9 and AS3 from CS3.
Thanks