« July 2006 | Main | October 2006 »
August 20, 2006
Finally Updated: Embedding HTML in a Flex application using an IFrame
I've updated to Flex 2 (and which can also be used in Flex 3) the code by Christophe Coenraets for embedding HTML in a Flex application using an iframe.
You can see a demo of it here.
You can download the code here.
To run locally, first compile IFrameDemo.mxml. If you are using Flex Builder, unclick "Generate HTML wrapper file" in the Flex Compiler settings before publishing, since there is an existing HTML wrapper. After this, you can view IFrameDemo.html. If you get a "Security sandbox violation" error, you need to put the IFrameDemo directory in the local-trusted sandbox. See the Flex documentation for information on updating FlashPlayerTrust files.
There's been some comments below that say these instructions are no longer valid in Flex Builder 3. So check out the comments if these instructions don't work for you.
The one cause for limitations in this code is the use of opaque for wmode. I've seen reports of tabbing problems in the player, and running more than one player when using opaque wmode seems to degrade performance.
Check below the ad for some very important updates. The comments also have a lot of excellent details in them.
Update 1: see this post for an update to the code that needs less HTML changes, allows multiple HTML pages to be referenced at once, and controls the HTML visibility as needed.
Update 2 (an important update that I highly suggest you read): for my new views on iframes and Flex, read my post from July 2008: Don't Use IFrames for HTML in Flex
Posted by Brian at 11:20 PMAugust 18, 2006
Save your CSS with the Flex 2 Styles Creator
Derek Wischusen has posted a helpful example that allows you to download all the CSS generated from the Flex 2 Styles Creator. I also recommend checking out the rest of his new blog, flexonrails.net for advice on using Flex with Ruby on Rails.
Posted by Brian at 9:31 AMAugust 11, 2006
ASDoc is Available on Labs
Update: Flex now includes ASDoc. The documentation is here.
ASDoc, the Flex and AS3 documentation tool, is now available on labs:
http://labs.adobe.com/wiki/index.php/ASDoc
The page on labs has everything you'll need to get started: a link to asdoc.zip, instructions on installation, an explanation of the examples, and links to the two additional pages of ASDoc documentation.
If you have any questions on ASDoc, you can ask them here or on flexcoders, and I'll try to answer them.
August 10, 2006
The Article to Send to Your Friends
Send this article to your friends and coworkers:
How Flex Can Transform the User Experience on the Web
I don't normally link to other articles, since so many people read blogs from MXNA, but this one is worth special mention. Christophe makes a great case for Flex without even needing to mention the free SDK. The only issue I have with the article is the phrase "available today... across all major operating systems". I can see Linux users ready to pounce on this already. It'll be "available soon, we promise".
If you send Christophe's article on to a friend, the reader will of course be itching to find out more about Flex. You can then soothe their itching with Manish's Hello World article.
Unrelatedly, for those wondering, we are still planning to release ASDoc to labs. The concoction should be emerging soon, I promise.


