Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
How to get started with flex-iframe and use it in your project.
Import Flex-IFrame swc in your project
There are several ways to get the Flex-Iframe swc.
Directly downloading Flex-IFrame swc
You can find the last version of the library swc on Maven Central repository.
If you use Flex/Flash builder, just drop it in the project
Flex-IFrame artifacts are deployed in Maven Central repository. All you have to do is to add a dependency:
<dependency> <groupId>com.google.code.flex-iframe</groupId> <artifactId>flex-iframe</artifactId> <version>1.5.1</version> </dependency>
Building Flex-IFrame from sources
If you just cannot wait for a release, you can follow the Developers guide instructions.
Use Flex-IFrame in your project
Change the wmode
Create an IFrame
Here is an example of use in MXML:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexiframe="http://code.google.com/p/flex-iframe/"> <flexiframe:IFrame id="googleIFrame" label="Google" source="http://www.google.com" width="80%" height="80%"/> <mx:Application>
You can create IFrames in ActionScript too by importing the IFrame class: