Flasher Archive

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


Subject: Re: FLASH: control flash
From: Helen Triolo
Date: Sun, 12 Mar 2000 13:25:46 GMT

Sean Renet wrote:
>
> I am using a mouse event to control a flash movie.
>
> JS:
>
> function MM_findObj(n, d) { file://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) { file://v3.0
> var obj=MM_findObj(objStr);
> if (obj)
> eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
> }
>
> EVENT:
>
> A HREF="#"
> ONMOUSEOVER="changeImages('holrollovers_01',
> 'images/holrollovers_01-holrollo-04.gif', 'holrollovers_03',

> ...
> This works perfectly fine in IE, but not in netscape. Any Ideas? I am
> testing in netscape 4.7
>

Sean,
I'm no css expert, but something that comes immediately to mind is
that Netscape and IE don't deal with layers in the same way.
"document.layers" is not a valid Netscape object, so you may have to
change your MM_findObj function accordingly to get it to work in
Netscape. Webmonkey has an article that looks at the differences in
models at
http://hotwired.lycos.com/webmonkey/98/10/index2a.html?tw=authoring

Regards,
Helen
__________________________________________________________________
i-Technica: Innovative Internet Solutions (http://i-Technica.com)
designerati-technica [dot] com
301-424-6037

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: control flash, Eric Dunham

Replies
  RE: FLASH: Flash Writer plugin for Illus, gregory Landry
  FLASH: Vector Graphics Program, Donald
  FLASH: control flash, Sean Renet

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