Skip to content
This repository was archived by the owner on Mar 23, 2019. It is now read-only.

Users guide

nicoulaj edited this page May 1, 2011 · 12 revisions

Users guide

How to use flex-iframe 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 at the [http://code.google.com/p/flex-iframe/downloads/list downloads] page.

If you use Flex/Flash builder, just drop it in the project libs directory.

Using Maven

Flex-IFrame artifacts are deployed in [http://repo1.maven.org/maven2/com/google/code/flex-iframe/ Maven Central repository]. All you have to do is to add a dependency:

com.google.code.flex-iframe flex-iframe 1.4.6

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

Important ! To use flex-iframe, you must add the parameter wmode="opaque" to the embed in your HTML template. For more information about this, read the [FAQ].

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:

import com.google.code.flexiframe.IFrame;

You can find several example sources [http://code.google.com/p/flex-iframe/source/browse/#svn/trunk/examples here], and with their builds [http://repo1.maven.org/maven2/com/google/code/flex-iframe/examples/ here].

Clone this wiki locally