Why doesn't this work. I have a button that should play my flash
video. I don't get an error but the movie does not play.
function videoplay() {
alert("videoplay clicked.");
try {
var obj = swfobject.getObjectById("myMovie");
if (obj) {
obj.Play(); // e.g. an external interface
call
} else {
alert("Object Reference Failed.");
}
}
catch (err) {
alert("An error occured.");
}
return;
}
function videostop() {
//nCurrentFrame = sobj.currentFrame;
var obj = swfobject.getObjectById("myMovie");
if (obj) {
alert("Clicked Stop at Frame No.: " + obj.currentFrame
+ " of Total:" + obj.totalFrames );
obj.StopPlay(); // e.g. an external interface call
} else {
alert("Object Reference Failed.");
}
return ;
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---