hey all
trying to play a couple of external flvs through 1 netstream object (ie one finishes, the next plays)
this works fine
ActionScript Code:
// Create a NetConnection object:
var netConn2:NetConnection = new NetConnection();
// Create a local streaming connection:
netConn2.connect(null);
// Create a NetStream object and define an onStatus() function:
var netStream2:NetStream = new NetStream(netConn2);
netStream2.onStatus = function(infoObject) {
status2.text += "Status (NetStream2)" + newline;
status2.text += "Level: "+infoObject.level + newline;
status2.text += "Code: "+infoObject.code + newline;
if(infoObject.code=="NetStream.Play.Stop"){
trace('yep');
}
};
// Attach the NetStream video feed to the Video object:
my_video2.attachVideo(netStream2);
// Set the buffer time:
netStream2.setBufferTime(25);
// Being playing the FLV file:
netStream2.play("ed356k6.flv");
the trace happens and everybody is happy. But if I try to make it play the next vid with
ActionScript Code:
if(infoObject.code=="NetStream.Play.Stop"){
netStream2.close();
my_video2.clear();
netStream2.play("ed156k.flv");
}
it continually crashes flash, crashes my browser etc...
what am I doing wrong?
Thanks