Flasher Archive

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


Subject: RE: FLASH: control flash
From: Eric Dunham
Date: Sun, 12 Mar 2000 19:55:10 GMT

First and foremost, I love almost all of MM's products, but the built-in
functions for Dreamweaver, etc. are *horrid*. I for one, prefer to have
functional as well as readable code, not to mention the fact that the code
is almost always extremely bloated and they can't use meaningful variable
names worth anything.
Actually, now that I think about it, I can't stand any MM I've ever seen
come out of Dreamweaver, and I've always had to rewrite them... *sigh*
Now that that's over...

I've made some commented changes to the code, and you can see if that
works, or you can email me offlist and let me know exactly what you're
trying to do and I'll see if I can't come up with something.

HTH,
Eric Dunham

<snip content="cleaned up">
I am using a mouse event to control a flash movie.

JS:

function MM_findObj (n, d) {
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];
}
//if ( !x && d.layers) x=d.layers[n];
for (i=0; !x && d.layers && i<d.layers.length; i++){
x = MM_findObj(n,d.layers[i].document);
//x = MM_findObj(n,d.layers[i]);
}
return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) {
var obj = MM_findObj(objStr);
if (obj) eval('obj.' + cmdName + '( '+ ((cmdName=='GotoFrame')?frameNum:'')
+ ')');
}

EVENT:

onClick="MM_controlShockwave('0','','GotoFrame','10');"
...
This works perfectly fine in IE, but not in netscape. Any Ideas? I am
testing in netscape 4.7
</snip>


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
  FLASH: Fireworks to Flash, Sean Renet

Replies
  Re: FLASH: control flash, Helen Triolo

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