[F8 AS2] FLV ns.onStatus problem

hey there…

I’m playing an external FLV using the netstream connection, and when it gets to the end, I want to displa a replay button. I thought i Could do this with the onStatus (netstream.Play.Stop) handler. It seems to work for a second, but then the button (mc) disappears. I figured out how to trace the status of the netstream and saw that it reports the stop property but then goes to buffer.empty, which then makes my mc disappear again. So my question: How can I make a mc visible when the FLV is done playing?


//---------------Video Object---------------------\\
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.setBufferTime(5);
stream_ns.play("../video.flv");
videoIsPlaying = true;
videoPreload();



stream_ns.onStatus = function(infoObject:Object):Void  {
    trace("NetStream.onStatus called: ("+getTimer()+" ms)");
        for (var prop in infoObject) {
            trace("	"+prop+":	"+infoObject[prop]);
        }
        trace("");
    
    
    if (infoObject.code == "NetStream.Play.Stop") {
        videoIsPlaying = false;
        playPause._visible = false;
        replay._visible = true;
        
    }else{
        playPause._visible = true;
        replay._visible = false;
    }
};