ns.pause();
to pause...and then...
ns.pause();
to play again. It works like a toggle. At least in AS3.
Sammi
Mendelsohn, Michael wrote:
Hi list...
How exactly do you pause and play a video? I'm trying to create a
play/pause toggle button that isn't quite working. When pausing a
video, should you close the netstream? And if so, how is the best way
to reopen it to resume play?
Thanks,
- Michael M.
case (playPause) :
// play or pause the video
if (this[_label]._currentframe == 2) {
trace(pause);
_root.userInterface.ns.close();
clearInterval(_root.userInterface._data.intervalIDs.player);
this[_label].gotoAndStop(1);
} else {
trace(play);
trace(_root.userInterface.ns.time);
_root.userInterface.ns.seek(33);
this[_label].gotoAndStop(2);
}
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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