One idea may be to disable 1b if the playback is paused
And disable 1c if it is playing.

That way they is no confusion

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, 20 January 2006 5:34 AM
To: Flashcoders Mailing List
Subject: [Flashcoders] NetStream.pause(false) sometimes pauses ??

Hello good people,

I'll start with the direct question, then give some details.

Is there a trick to making sure NetStream.pause(false) never pauses your
FLV?

I'm using Flash 8, exporting to player 8 format.  When I use NetStream's
pause()
function with "false" for the argument, it pauses my video.  But the
argument
"false" is supposed to mean "don't pause." right?  example:

var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
my_video.attachVideo(stream_ns);
button1.onRelease = function() {
        stream_ns.play("video.flv");
};
button1b.onRelease = function() {
        stream_ns.pause(true);
};
button1c.onRelease = function() {
        stream_ns.pause(false);
};

Here is what happens for me.  I'd really like to know if anyone else has the
same result.

button1 plays the video. (good)
button1b pauses the video. (good)
button1c resumes the video. (good)
button1c again pauses the video. (bad)
No amount of pressing button1b and button1c will resume playback. (bad)
I have to press button1 to get playback again.

According to Macromedia docs, NetStream.pause(false) should always result
with
the video playing, not paused.  Or am I missing something?

Hopefully someone out there has run into this and has the perfect quickfix
for
me!

Thanks in advance
David Lanier
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to