Thanks. I've actually been through a bunch of those tutorials already. One of the tutes does show how to auto-rewind when a video has finished playing. I then added an "ns.pause" line to prevent the clip from looping. I couldn't find any reference to swapping button visibility, but I might've just missed it. (Video tutorials are great for learning but not so great for referencing.)
However, I think I've figured it all out. Perhaps the code below will help someone else. If anyone has more elegant solutions, cool.
Here's the code I'm using to auto-rewind and pause after a streamed .flv has played:
PHP Code:
if(info.code == "NetStream.Play.Stop") {
ns.seek(0);
ns.pause();
}
And here's the code I'm using to swap the play and pause buttons (which are stacked one atop the other on the stage):
PHP Code:
pauseButton.onRelease = function() {
ns.pause();
setProperty("_root.pauseButton", _visible, false);
setProperty("_root.playButton", _visible, true);
}
playButton.onRelease = function() {
ns.pause();
setProperty("_root.playButton", _visible, false);
setProperty("_root.pauseButton", _visible, true);
}