hi!
thank you for posting this, it seems it would be the answer to my problem (which is that the audio from the flv keeps playing after exiting the frame it’s in, just like the original post described).
i just don’t know how to implement what you describe, for example, when you say:
"making a simple player with the netstream component"
i have no idea what you mean by that.
could you possibly break it down in step-by-step instructions?
note: what i have on my stage is an instance of a movie clip symbol which contains an FLV_playback component (which has the flv indicated in “source”, under parameters).
also, when you say “i created a video object” - how do you do that? how is that different from bringing an flv_playback component from the library?
then you say: "then i created a play/pause button. I attached this code:"
where does the code go? in the frames within the button symbol, or in the scene where the button is placed?
as you can see, i’m a total novice.
i’d so appreciate your help!
thank you in advance.
c
[quote=polishbroadcast;655368]This goes on the frame with the player:
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream= new NetStream (netConn);
video
.attachVideo (netStream);
netStream.setBufferTime(10);
vfile="
your_url/yourvideofile.flv
";
netStream.play(vfile);
I created a video object, put it on the stage and gave it an instance name of “video”. Then i created a play/pause button. I attached this code:
on (release) {
_parent.netStream.pause();
this.play();
mc_playstatus.play();
}
Apparently the
netStream.pause();
command pauses and unpauses the video alternately, each time it is issued. It isn’t fancy, but my videos stop streaming when i move to another part of the site. Whew![/quote]