Package | com.adobe.portfolio.components.supportClasses |
Class | public class FlashContainer |
Inheritance | FlashContainer ![]() |
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
True if the referenced SWF object should be displayed; false otherwise. | 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 | ||
---|---|---|---|
Default constructor. | FlashContainer |
Method | Defined By | ||
---|---|---|---|
initSkinObj():void
Initializes skinObj based on the current loaded swf and swfClass. | FlashContainer | ||
measure():void [override]
Measures the contents of this Flex container. | 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: true Part Type: Static An image skin part where the SWF object will be rendered. | FlashContainer |
skinObj | property |
protected var skinObj:DisplayObject = null
The DisplayObject in the swf that should be rendered by this component.
skinsAreLoaded | property |
skinsAreLoaded:Boolean
A 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:String
Returns 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
See also
useFlashAsset | property |
useFlashAsset:Boolean
True if the referenced SWF object should be displayed; false otherwise.
This 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()
Default constructor.
initSkinObj | () | method |
protected function initSkinObj():void
Initializes skinObj based on the current loaded swf and swfClass.
measure | () | method |
override protected function measure():void
Measures the contents of this Flex container. The SWF object is not considered when measuring.
onResize | () | method |
protected function onResize(evt:ResizeEvent):void
An 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):void
An event listener to respond when a swf is loaded or unloaded.
Parameters
evt:Event |
setSource | () | method |
protected function setSource():void
Sets 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.