Aspire UI Components (Flash ActionScript 3.0) Docs
Table of Contents

uiSWF

Required: Aspire UI Components Standard Edition v1.2.0+

The uiSWF control is used to load and contain an external interactive SWF. Use this class when you want to load an external application SWF (module) into a host application SWF.

This control is a subclass of uiPane, making it suitable to be plugged in as the content of a uiScrollPane instance.


Using uiSWF

ActionScript 3.0 Example

import com.ghostwire.ui.containers.uiScrollPane;
import com.ghostwire.ui.containers.uiWindow;
import com.ghostwire.ui.controls.uiSWF;
 
uiWindow.initialize(stage);
 
var swf:uiSWF = new uiSWF();
swf.source = "MyExample.swf";
 
var sp:uiScrollPane = new uiScrollPane();
sp.fillX = true;
sp.fillY = true;
sp.content = swf;
 
var swfWin:uiWindow    = new uiWindow();
swfWin.title        = "MyExample";
swfWin.liveDragging    = true;
swfWin.content.addChild(sp);
swfWin.open();

uiSWF example

In the example above, the uiSWF component is used to load an external SWF “MyExample.swf” (path relative to the host SWF). The uiSWF instance is then set as the content of a uiScrollPane instance, which is in turn added to the content area of a uiWindow instance.


API Reference

For more information on the members of the com.ghostwire.ui.controls.uiSWF class, please refer to the API Reference.


 
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki