Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Controling Movie from javascript
From: Craig Thomas
Date: Tue, 5 Sep 2000 11:33:06 +0100

marc,

Thanks for the script, but it doesn't seem to work in IE on the Mac.
I get an error: Object doesn't support this property or method

??????????? Any Ideas???

Craig
c [dot] thomasatcarterwongtomlin [dot] com


on 5/9/00 6:56 am, Marc Pidoux at marcatpidoux [dot] com wrote:

> <html>
> <head>
> <title>Controle flash film</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <script language="JavaScript">
> <!--
> function MM_findObj(n, d) { //v3.0
> var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)
> {
> d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
> x=d.forms[i][n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers[i].document);
> return x;
> }
>
> function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
> var obj=MM_findObj(objStr);
> if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
> }
> //-->
> </script>
> </head>
>
> <body bgcolor="#FFFFFF">
> <p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
> version=4,0,2,0"
> width="550" height="400" name="yourfilm">
> <param name=movie value="yourfilm.swf">
> <param name=quality value=high>
> <embed src="rotation.swf" quality=high
> pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Ve
> rsion=ShockwaveFlash"
> type="application/x-shockwave-flash" width="550" height="400" name="yourfilm"
> swliveconnect="true">
> </embed>
> </object> </p>
> <table width="200" border="1">
> <tr>
> <td>Go to</td>
> <td><a href="#"
> onClick="MM_controlShockwave('yourfilm','','GotoFrame','1')">Frame
> 1</a></td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> <td><a href="#"
> onClick="MM_controlShockwave('yourfilm','','GotoFrame','10')">Frame
> 10</a></td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> <td><a href="#"
> onClick="MM_controlShockwave('yourfilm','','GotoFrame','50')">Frame
> 50</a></td>
> </tr>
> </table>
> <p>&nbsp;</p>
> </body>
> </html>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Controling Movie from javascr, Marc Pidoux

Replies
  Re: FLASH: Controling Movie from javascr, Marc Pidoux

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]