use this:
myNetStream.onStatus = function(infoObject:Object):Void {
if (debug==true)
{
status_txt.text += "status (" + this.time + " seconds)\n";
status_txt.text += "\t Level: " + infoObject.level + "\n";
status_txt.text += "\t Code: " + infoObject.code + "\n\n";
}
if (infoObject.code=="NetStream.Play.Stop")
{
// VIDEO FINISHED..
// use some Delegate.create(...) here
}
}
HTH,
Matthias
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com