Hi:

   I'm using swfobject 2.2 (in the Static Publishing mode) and am
successful in showing my short video clip on my website
(www.mesaeastpark.com --- 'Click' on 'Visit Us' -> 'Click' on
Preliminary Video Testing' to see the clip)

   However, I don't know how to Stop, Start, Rewind, etc the video
clip.  It just keeps runnning forever. I have tried to define buttons
for those tasks -- which refer to JS functions.

   But, somehow I'm not understanding what's going on.

   I'll include my short .htm file below.

Can anyone give some help please ??

Thanks,

- Mel Smith  (A senior who is trying to build a website for our mobile
home park)
Edmonton, Canada and Mesa, Arizona

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
<title>Baywood Ave. near Balmoral</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script type="text/javascript" src="/scripts/swfobject.js"></script>

<script type="text/javascript">
   var sobj,totalFrames ;
   totalFrames = 0;
   function outputStatus(e) {
      //alert("Testing --- e.success = " + e.success +"\ne.id = "+
e.id +"\ne.ref = "+ e.ref);
      sobj = e.ref;
      totalFrames = sobj.totalFrames;
      //alert("Total Frames="+totalFrames);
   }

   swfobject.registerObject("movie", "9.0.0", "/images/
expressInstall.swf", outputStatus);

   function play() {
      var flash = window.movie || document.movie;  // Get flash Object
      sobj.Play();
   }

   function stop() {
      var flash = window.movie || document.movie;  // Get flash Object
      alert("Clicked Stop Button.");
      sobj.StopPlay();
   }

   function rewind() {
      var flash = window.movie || document.movie;  // Get flash Object
      sobj.Rewind();
   }

</script>
</head>

<body>
<h2 align="center">Viewing Baywood Avenue near Balmoral Drive</h2>
<h3 align="center">Date:&nbsp; February 2009</h3)
<br />
<h4 align="center">Starts looking to the East then sweeps North and
ends facing due West</h4>
<br />
<div align="center">
<object id="movie" classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000" width="720" height="480">
<param name="movie" value="/images/baywood.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/images/
baywood.swf" width="720" height="480">
<!--<![endif]-->
<div align="center">
<h1>You Need a Flash Player to view Movie clips</h1>
<p><a href="http://www.adobe.com/go/getflashplayer";>
<img src="http://www.adobe.com/images/shared/download_buttons/
get_flash_player.gif"
alt="Get and Install an Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<form name="f" onsubmit="return false;">
<button name="play" onclick="play();">Play Video</button>&nbsp;&nbsp;
<button name="stop" onclick="stop();">Stop Video</button>&nbsp;&nbsp;
<button name="rewind" onclick="rewind();">Rewind</button>&nbsp;&nbsp;

</form>
</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to