| Package | com.adobe.portfolio.components.supportClasses |
| Class | public class FlashContainer |
| Inheritance | FlashContainer spark.components.SkinnableContainer |
| Implements | IFlashComponent |
Default MXML PropertymxmlContentFactory
| Property | Defined By | ||
|---|---|---|---|
| swfClass : String
Returns the name of the stage instance for this component within a designer skin swf. | FlashContainer | ||
| useFlashAsset : Boolean | FlashContainer | ||
| Property | Defined By | ||
|---|---|---|---|
| skinObj : DisplayObject = null The DisplayObject in the swf that should be rendered by this component. | FlashContainer | ||
| skinsAreLoaded : Boolean A Boolean indicating whether or not the skins contained in the swf have been loaded. | FlashContainer | ||
| Method | Defined By | ||
|---|---|---|---|
| FlashContainer | |||
| Method | Defined By | ||
|---|---|---|---|
initSkinObj():void Initializes skinObj based on the current loaded swf and swfClass. | FlashContainer | ||
measure():void [override] | FlashContainer | ||
onResize(evt:ResizeEvent):void An event listener to respond when this element is resized. | FlashContainer | ||
onSkinsLoaded(evt:Event):void An event listener to respond when a swf is loaded or unloaded. | FlashContainer | ||
setSource():void Sets the source of this component appropriately based on the availability of skinObj. | FlashContainer | ||
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
| Skin Part | Description | Defined By | ||
|---|---|---|---|---|
flashImage:mx.controls.Image | Required: false Part Type: Static | FlashContainer | ||
| skinObj | property |
protected var skinObj:DisplayObject = nullThe DisplayObject in the swf that should be rendered by this component.
| skinsAreLoaded | property |
skinsAreLoaded:BooleanA Boolean indicating whether or not the skins contained in the swf have been loaded.
protected function get skinsAreLoaded():Boolean protected function set skinsAreLoaded(value:Boolean):void| swfClass | property |
swfClass:StringReturns the name of the stage instance for this component within a designer skin swf.
public function get swfClass():String public function set swfClass(value:String):void| useFlashAsset | property |
useFlashAsset:BooleanThis property can be used as the source for data binding.
public function get useFlashAsset():Boolean public function set useFlashAsset(value:Boolean):void| FlashContainer | () | Constructor |
public function FlashContainer()| initSkinObj | () | method |
protected function initSkinObj():voidInitializes skinObj based on the current loaded swf and swfClass.
| measure | () | method |
override protected function measure():void| onResize | () | method |
protected function onResize(evt:ResizeEvent):voidAn event listener to respond when this element is resized. This is important when skinObj supports the 9-slice skinning model, since a simple scaling is not sufficient when redrawing.
Parameters
evt:ResizeEvent |
| onSkinsLoaded | () | method |
protected function onSkinsLoaded(evt:Event):voidAn event listener to respond when a swf is loaded or unloaded.
Parameters
evt:Event |
| setSource | () | method |
protected function setSource():voidSets the source of this component appropriately based on the availability of skinObj. If skinObj is non-null, then it is sized properly and used as the source. Otherwise the _backup Bitmap is used if it is non-null.