Sam:
Thanks for the additional links. (btw, I'm using Explorer 7 for
testing now). But have Opera, FireFox, Chrome, and Safari ready for
later trials too)
Over the past few hours, I have changed my .htm page so that a few
errors were removed (caused by strict XHTML rather than Transitional,
I believe), and some added debugging 'alert()' statements were added.
The function outputStatus() is automatically called (callback) on
loading being completed. It passes thru its argument (e) the success,
the I.D., and the object itself)
The results of that outputstatus() function now display as an alert
just prior to the movie clip starting.
I note that the sobj.totalFrames property is available and it shows
322 frames. *However*, the sobj.currentFrame property is apparently
*not* available and fails if I try to use it.
In all cases, when I try to use the global sobj object, the Flash
Methods are simply ignored.
Hope you can (over the weekend) give it one more look and see all
the variations of 'getobjectbyid()' that I tried without success :((
Again, below is my latest unsuccesful effort to *stop* the video
(i.e., by sobj.StopPlay() ). I *know* the statement is being accessed
because of the 'alert' showing just before it -- but nothing
happens. It just keeps running on forever.
Enjoy your Weekend (and I'll be looking over those YouTube links)
and Thanks Again for your effort to help me !
-Mel Smith
Edmonton, Canada and Mesa, Arizona (during the winter)
****************************** my latest .htm file (see
www.measeeastpark.com->'Visit'-> 'Prelim Video Testing'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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, nCurrentFrame, nTotalFrames ;
nCurrentFrame = 0 ;
nTotalFrames = 0 ;
function outputStatus(e) {
alert("Testing --- e.success = " + e.success +"\ne.id = "+ e.id
+"\ne.ref = "+ e.ref);
// Which variation of the below statements is correct ???
Sigh ...
//sobj = swfobject.getObjectById(e.id);
//sobj = swfobject.getObjectById(e.ref);
//sobj = e; // is this correct ??
sobj = e.ref; // Maybe This ??? // Apparently this works
'mostly'
nTotalFrames = sobj.totalFrames; // This gets 322 total Frames
// These next few lines 'crash' and are ignored. I believe that
// the currentFrame property is not available ??
//nCurrentFrame = sobj.currentFrame; // What Frame do we start
at ??
//alert("Total Frames in Video Clip are: "+nTotalFrames
+"\nCurFrame: "+nCurrentFrame);
return;
}
swfobject.registerObject("movie", "9.0.0", "/images/
expressInstall.swf", outputStatus);
function videoplay() {
alert("Clicked Play Button.");
sobj.Play();
return ;
}
function videostop() {
//nCurrentFrame = sobj.currentFrame;
alert("Clicked Stop at Frame No.: "+nCurrentFrame+" of Total:
"+nTotalFrames);
sobj.StopPlay();
return ;
}
function videorewind() {
alert("Clicked Rewind Button.");
sobj.Rewind();
return ;
}
</script>
</head>
<body>
<h2 align="center">Viewing Baywood Avenue near Balmoral Drive</h2>
<h3 align="center">Date: 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="360" height="240">
<param name="movie" value="/images/baywood.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/images/
baywood.swf" width="360" height="240">
<!--<![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 id="vidfrm" onsubmit="return false;">
<button name="play" type="button" onclick="videoplay();">Play Video</
button>
<button name="stop" type="button"onclick="videostop();">Stop Video</
button>
<button name="rewind" type="button" onclick="videorewind();">Rewind</
button>
</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
-~----------~----~----~----~------~----~------~--~---