IE7 Security Warning with Flex Builder & SWFObject 2.1

40 views
Skip to first unread message

Rick

unread,
Dec 31, 2008, 7:33:08 AM12/31/08
to SWFObject
When I try to debug a AS3 or Flex app from Flex Builder, I get the
following error in Internet Explorer
"To help protect your security, Internet Explorer has restricted this
webpage from running scripts or ActiveX controls that could access
your computer. Click here for options..."

The click here just lets you do "allow blocked content"

I have tried the included index_dynamic.html from the swfobject 2.1
download

I have tried the generator from swfobject code base
http://code.google.com/p/swfobject/downloads/list

I have tried this template someone made for flex builder
http://code.google.com/p/visualplaygroundmedia/source/browse/trunk/html-template/index.template.html


When I revert back to the adobe default it works fine in IE

for those without flex builder, here is the default template:
http://pastebin.com/f537facd8

The debugger uses C:\Rick\My Documents\Flex Builder 3\test\bin-debug
\test.html as the launching URL if that matters. I'm wondering if
Adobe gets a pass somewhere with IE security?



Aran Rhee

unread,
Dec 31, 2008, 8:35:54 PM12/31/08
to swfo...@googlegroups.com
As you are testing locally, there are specific security settings which IE
applies. There are two things you can do to get rid of these sort of
messages:


1. give your page(s) the "mark of the web" - by adding this line to your
HTML page. This circumvents IE's "local machine lockdown" which was
introduced in XP SP2 and Vista. This line should go just after your DOCTYPE
declaration.

<!-- saved from url=(0014)about:internet -->


More info here:
http://msdn.microsoft.com/en-us/library/ms537628(VS.85).aspx



OR
2. In IE, go to internet options > advanced > check "allow active content
to run files on My computer".



*** Notice the default template you supplied a link to has the "mark of the
web" as its first line :)



Cheers,
Aran

Rick Schmitty

unread,
Jan 2, 2009, 7:03:40 AM1/2/09
to swfo...@googlegroups.com
oh man, I always thought that was junk code Adobe left in on accident.
Thank you sooo much, that worked putting that in.

Hopefully someone else trying swfobject and flexbuilder finds Aran's
information useful in future searches, thank you :)
Reply all
Reply to author
Forward
0 new messages