Packagecom.adobe.portfolio.managers
Classpublic class FlashSkinManager
InheritanceFlashSkinManager Inheritance flash.events.EventDispatcher

Language Version : ActionScript 3.0
Product Version :  Acrobat ActionScript API 10
Runtime Versions : Flash Player 10, AIR 1.5

The FlashSkinManager dynamically loads skin SWF files and creates object instances from them to be used as visual assets by Flex components and skins.



Public Properties
 PropertyDefined By
  instance : FlashSkinManager
[static] [read-only] Returns a FlashSkinManager static instance that can be shared by Flex components.
FlashSkinManager
Protected Properties
 PropertyDefined By
  activeSWF : String
The current SWF being used for Flash skins.
FlashSkinManager
  libs : Object
A mapping of SWF file names to their corresponding loaded instances.
FlashSkinManager
  loaders : Object
A mapping of SWF file names to their corresponding loaders.
FlashSkinManager
Public Methods
 MethodDefined By
  
FlashSkinManager(target:IEventDispatcher = null)
Constructor
FlashSkinManager
  
getSkin(skin:String):DisplayObject
Returns the specified skin from the most recently loaded SWF.
FlashSkinManager
  
loadFlashSkins(swf:String):void
Causes the FlashSkinManager to load the specified skin SWF.
FlashSkinManager
  
skinsAreLoaded(swf:String):Boolean
Returns true if the specified SWF file has been loaded by the manager; false otherwise.
FlashSkinManager
  
unloadFlashSkins(swf:String):void
Causes the FlashSkinManager to unload the specified SWF.
FlashSkinManager
Protected Methods
 MethodDefined By
  
addLoadEvents(swfLoader:SWFLoader):void
Adds the required event listeners to a swfLoader prior to the call to load the skin SWF.
FlashSkinManager
  
cleanLoadEvents(swfLoader:SWFLoader):void
This function removes the required event listeners from a swfLoader once a call to load has been resolved.
FlashSkinManager
  
onLoadComplete(evt:Event):void
EventHandler for successful load completion of a skin SWF.
FlashSkinManager
  
onLoadIOError(evt:IOErrorEvent):void
Event Handler for any IO errors loading a skin SWF.
FlashSkinManager
  
onLoadSecurityError(evt:SecurityErrorEvent):void
Event handler for security errors when loading a skin SWF.
FlashSkinManager
Public Constants
 ConstantDefined By
  knownAssetNames : Array
[static] An array of the known visual assests for a Navigator: "IconBackground", "IconBackgroundOver", "FolderSmall", "FolderMedium", "FolderLarge", "HeaderBackground", "NavBackground", "CardTitleBar", "FolderTitleBar", "MiniNavSlammerBackground", "MiniNavSlammerBackgroundOver", "MiniNavBackground", "MiniNavCard", "MiniNavCardOver", "MiniNavCardSelected", "NavCard", "NavCardOver", "NavCardSelected", "NextButton", "NextButtonOver", "PreviousButton", "PreviousButtonOver", "CloseButton", and "CloseButtonOver"
FlashSkinManager
Property Detail
activeSWFproperty
protected var activeSWF:String

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The current SWF being used for Flash skins.

instanceproperty 
instance:FlashSkinManager  [read-only]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns a FlashSkinManager static instance that can be shared by Flex components.


Implementation
    public static function get instance():FlashSkinManager
libsproperty 
protected var libs:Object

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

A mapping of SWF file names to their corresponding loaded instances.

loadersproperty 
protected var loaders:Object

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

A mapping of SWF file names to their corresponding loaders.

Constructor Detail
FlashSkinManager()Constructor
public function FlashSkinManager(target:IEventDispatcher = null)

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Constructor

Parameters
target:IEventDispatcher (default = null)
Method Detail
addLoadEvents()method
protected function addLoadEvents(swfLoader:SWFLoader):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Adds the required event listeners to a swfLoader prior to the call to load the skin SWF.

Parameters

swfLoader:SWFLoader

cleanLoadEvents()method 
protected function cleanLoadEvents(swfLoader:SWFLoader):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

This function removes the required event listeners from a swfLoader once a call to load has been resolved. This is important to avoid orphaned objects and to properly handle garbage collection dependencies.

Parameters

swfLoader:SWFLoader

getSkin()method 
public function getSkin(skin:String):DisplayObject

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns the specified skin from the most recently loaded SWF. If non-null, the returned object is the actual stage instance of a DisplayObject, not a copy or clone.

Parameters

skin:String

Returns
DisplayObject
loadFlashSkins()method 
public function loadFlashSkins(swf:String):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Causes the FlashSkinManager to load the specified skin SWF.

Parameters

swf:String

onLoadComplete()method 
protected function onLoadComplete(evt:Event):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

EventHandler for successful load completion of a skin SWF.

Parameters

evt:Event

onLoadIOError()method 
protected function onLoadIOError(evt:IOErrorEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Event Handler for any IO errors loading a skin SWF.

Parameters

evt:IOErrorEvent

onLoadSecurityError()method 
protected function onLoadSecurityError(evt:SecurityErrorEvent):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Event handler for security errors when loading a skin SWF.

Parameters

evt:SecurityErrorEvent

skinsAreLoaded()method 
public function skinsAreLoaded(swf:String):Boolean

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns true if the specified SWF file has been loaded by the manager; false otherwise.

Parameters

swf:String

Returns
Boolean
unloadFlashSkins()method 
public function unloadFlashSkins(swf:String):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Causes the FlashSkinManager to unload the specified SWF.

Parameters

swf:String

Constant Detail
knownAssetNamesConstant
public static const knownAssetNames:Array

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

An array of the known visual assests for a Navigator: "IconBackground", "IconBackgroundOver", "FolderSmall", "FolderMedium", "FolderLarge", "HeaderBackground", "NavBackground", "CardTitleBar", "FolderTitleBar", "MiniNavSlammerBackground", "MiniNavSlammerBackgroundOver", "MiniNavBackground", "MiniNavCard", "MiniNavCardOver", "MiniNavCardSelected", "NavCard", "NavCardOver", "NavCardSelected", "NextButton", "NextButtonOver", "PreviousButton", "PreviousButtonOver", "CloseButton", and "CloseButtonOver"