Flex: IFrame with local file.

I have been playing around with creating a demo app which runs as a file (instead of through a web server). Accessing a remote url as the ’source’ value for the IFrame works perfectly but I have noticed strange behaviour if you access a local html file. Works fine in Firefox but I get a blank page under IE. I don’t have a fix for this yet but my feeling is that it is something to do with the security settings for IE. If I access the simple demo through the web server under IE it works as expected. It’s only if I load the flex app as a file!

Anyone having problems, if you post a comment please state the browser you are using.

I may not have not made it clear enough but the IFrame component requires a change to the html-template file for your app. Please examine this file in the demo apps to see the addition of – “wmode”, “opaque” and the appropriate places where this is added.

I cannot state enough the importance of setting up your own localised web server. This just needs to point to a place on your disk where you can dump web pages and view them as served up by Apache. Anyone serious about web development will tell you the same thing. There is lots of help on the web on how to do this.

Updated demo apps coming soon.

Comments

2 Responses to “Flex: IFrame with local file.”

  1. zhuzhu on November 21st, 2007 4:19 am

    I’ve got the same problem, but the early version of IFrame.as works fine(with no other files).

    Expecting your updated demo,thanks

  2. zhuzhu on November 21st, 2007 4:37 am

    I added “” in the myMap.html file ,under line ” ” , and it works!

Leave a Reply