iSpring.flex.PresentationContainer Class

The PresentationContainer class extends the standard mx.core.UIComponent class and provides the following properties:

Table 1. Properties
Property Type Description
bridgeLoader BridgeLoader Returns a BridgeLoader object providing an ability to load iSpring generated presentations

Samples

This class can be used in Flex applications to put a presentation container UI component to a Flex form.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="{creationComplete()}"
    xmlns:mc="ispring.flex.*" frameRate="30" minWidth="470" minHeight="200">
   <mx:Script source="main.as"/>
        <mc:PresentationContainer id="presentationContainer" width="780" height="524" x="10" y="36">
        </mc:PresentationContainer>
       <!-- the rest UI elements are placed here-->
    </mx:Application>
    

The following code loads the generated presentation into the presentation container (file main.as).

import iSpring.flex.PresentationContainer;
import iSpring.as3bridge.*;

private function creationComplete():void
{
    var bridgeLoader:BridgeLoader = presentationContainer.bridgeLoader;
    bridgeLoader.loadPresentation("as3bridge.swf", "presentation.swf");
}