PDA

View Full Version : Any idea why IE blocked this Flash contents?


Sayargyi
03-12-2006, 09:14 PM
Hello there,
I am a newbie here. Let me make it short. I wanted to put my flash menu online in my index.html page. But somehome IE blocked it as Active contents until i have to allow it by clicking the bar at the top of the window.
However, when i put the highlighted comments (shown below), IE didn't block it anymore. I wanna find out why it is happening and i have been to almost every forum threads here and I didn't find the exact reason here.
Any help will be greatly appreciated.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Menu</title>
</head>

<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet --><table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="80" id="Menu" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash/Menu.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="flash/Menu.swf" quality="high" bgcolor="#ffffff" width="800" height="80" name="Menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>

r-dog
03-13-2006, 07:33 PM
I suspect you are testing locally? The functionality of internet explorer blocks local scripts from running because it thinks the flashplayer is trying to install something.

If you upload your page and test it online, it *should* be fine...

That said, I have heard of instances where Internet Explorer does the same blocking even with online content - and as far as I know, it has to do with the embed code used to place the flash content in the page... If that's the case, your best bet is to change your flash publish settings to publish an html page, and then just copy and paste the embed code from that into your own page.

cheers

Sayargyi
03-15-2006, 12:51 AM
Thanks 'r-dog' !
I just had copied it from the html file created by Flash 8. It works well now. Although Dreamweaver 8 produces almost exactly the same code, it doesn't work sometimes on IE.