Flasher Archive

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


Subject: RE: FLASH: Controling Movie from javascript
From: Springer, Steven
Date: Tue, 5 Sep 2000 16:38:27 +0100

Thank goodness for Dreamweaver. With recent suggestions, it just solved two
of my problems. However, I have a question.

Is there a variation on this Behavior that controls Scenes in a movie? I
tried just changing gotoFrame to gotoScene, but that didn't work. Also,
this code didn't work for me on NS. Did I miss something? It's set to work
for 4.0 and later browsers in Dreamweaver. Thanks.

-Steve

-----Original Message-----
From: Marc Pidoux [marcatpidoux [dot] com (mailto:marcatpidoux [dot] com)]
Sent: Tuesday, September 05, 2000 2:57 AM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Controling Movie from javascript


Here is a sample code to do it:

Cheers

Marc

***********************************************************
<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.ca
b#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_
Version=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


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