Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

beatsme

macrumors 65816
Original poster
Oct 6, 2005
1,204
2
I'm working in Dreamweaver 8, and I'm using a small flash movie as an animated rollover. When you click (ideally) on the flash movie, it opens a link in a new window. This works perfectly well in Safari, but in Internet Explorer 6 on Windows XP, it doesn't work at all. Here is the code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100" onclick="MM_openBrWindow('h426.html','','width=650,height=510,left=600,top=75')">
<param name="movie" value="images/h426.swf" />
<param name="quality" value="high" />
<embed src="images/h426.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="100"></embed>
</object>

the only error I get in Dreamweaver is that the onClick function is not supported by Netscape Navigator 6; doesn't say a word about IE6. There is another (perhaps related) error message that states that the embed tag varies by plug-in, and that I should check that all tags are valid.

so, two questions:

1) how the hell can I make this work with IE6, and
2) how can I check that the embed tags are valid

thanks in advance...
 
I'm working in Dreamweaver 8, and I'm using a small flash movie as an animated rollover. When you click (ideally) on the flash movie, it opens a link in a new window. This works perfectly well in Safari, but in Internet Explorer 6 on Windows XP, it doesn't work at all. Here is the code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100" height="100" onclick="MM_openBrWindow('h426.html','','width=650,height=510,left=600,top=75')">
<param name="movie" value="images/h426.swf" />
<param name="quality" value="high" />
<embed src="images/h426.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="100"></embed>
</object>

the only error I get in Dreamweaver is that the onClick function is not supported by Netscape Navigator 6; doesn't say a word about IE6. There is another (perhaps related) error message that states that the embed tag varies by plug-in, and that I should check that all tags are valid.

so, two questions:

1) how the hell can I make this work with IE6, and
2) how can I check that the embed tags are valid

thanks in advance...

yea, I know I can set the onClick parameter in Flash to open a new browser window, but it won't let me specify how big the window is, where it opens, and whether to display scroll bars/menu bar, etc. At least, if it will I don't know how to...

does anyone know how get Flash to use specific attributes to open a new browser window?
 
Why don't you make a transparent movieclip in the flash file and assign the actionscript to getUrl() onclick of that movieclip?

That would alleviate any cross-browser problems.
 
Why don't you make a transparent movieclip in the flash file and assign the actionscript to getUrl() onclick of that movieclip?

That would alleviate any cross-browser problems.

getURL() doesn't allow me to specify window size and attributes. It just opens a new window. What I want is kind of a popup window.

I'm getting very close to saying the heck with it all and just using a rollover .gif instead. I know that will work.
 
getURL() doesn't allow me to specify window size and attributes. It just opens a new window. What I want is kind of a popup window.

I'm getting very close to saying the heck with it all and just using a rollover .gif instead. I know that will work.

What is the "MM_openBrWindow()" function? I'm assuming that's some sort of Flash method (is it ActionScript or whatever?) for opening a new browser window. But can't you just use JavaScript instead?
 
What is the "MM_openBrWindow()" function? I'm assuming that's some sort of Flash method (is it ActionScript or whatever?) for opening a new browser window. But can't you just use JavaScript instead?

it's actually JavaScript. I believe the hangup is that it won't let me use a Flash movie with the onClick function. Works fine with a static image. So right now I'm investigating alternative methods in Flash...
 
Got it...

it's actually JavaScript. I believe the hangup is that it won't let me use a Flash movie with the onClick function. Works fine with a static image. So right now I'm investigating alternative methods in Flash...

http://www.kirupa.com/developer/mx/centered_popup.htm

the link has working source code. Runs like a champ.

Also, for those of you who wish to get rid of that stupid "click here to activate this control" thing in Windows XP, here's a link to a site with a code fix for that...

http://www.ediy.co.nz/click-to-acti...trol-fix-for-internet-explorer-xidc20771.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.