Bill Burns
Guest
|
Posted:
Tue May 17, 2005 8:30 am Post subject:
Re: How to unpause an embedded movie clip? |
|
|
function PlayPauseClick(){
if (bControl == true) {
if (document.MediaPlayer1.PlayState == 2){
document.MediaPlayer1.Pause();
} else {
document.MediaPlayer1.Play();
} else {
if (document.MediaPlayer1.GetPlayState() == 2){
document.MediaPlayer1.Pause();
} else {
document.MediaPlayer1.Play();
}
}
This is cross browser compatible.
Thanks,
Bill
"Michael D." <MichaelD@discussions.microsoft.com> wrote in message
news:854978A6-8731-4B9E-9C13-185CFCED4130@microsoft.com...
| Quote: | I am trying to write a little script to allow a movie clip to be
paused/unpaused. Pausing seems easy enough, but I can't get it to
continue
on. I'm totally new to scripting windows media, but know javaScript well
enough I suppose.
Thanks for any help, here's my little script:
var amIPaused = "No";
function PauseMe (){
if (amIPaused == "No") {
Player.controls.pause ();
amIPaused = "Yes";
}
else {
Player.controls.unpause (); // What should I do here???? THANKS!
amIPaused = "No";
}
} |
|
|