Packagecom.gestureworks.cml.element
Classpublic class SWC
InheritanceSWC Inheritance ElementFactory Inheritance flash.display.Sprite
Subclasses SWCElement

The SWC element displays an external class from a SWC library file. It is meant to be used within CML. It provides little difference from native methods when using AS3.

The SWC libray must be included in the project's library, and must be registered somewhere in the project by using the following import statement:

import myAsset; myAsset;

If the SWC library contains a package structure, then you must include it:

import org.openexhibits.myAsset; myAsset;

See also

SWF


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
  classRef : String
Loads a swc library class.
SWC
 InheritedcmlIndex : int
sets the cml index
ElementFactory
  color : Number
Sets the color
SWC
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedheight : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 Inheritedleft : Number
sets left value
ElementFactory
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
 Inheritedwidth : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
SWC()
Constructor
SWC
 Inherited
clone():*
Returns clone of self
ElementFactory
 Inherited
CML callback
ElementFactory
  
dispose():void
[override] Dispose methods
SWC
  
init():void
[override] Initialisation method
SWC
 Inherited
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
classRefproperty
classRef:String

Loads a swc library class. It must be pre-loaded through the library kit


Implementation
    public function get classRef():String
    public function set classRef(value:String):void
colorproperty 
color:Number

Sets the color


Implementation
    public function get color():Number
    public function set color(value:Number):void
Constructor Detail
SWC()Constructor
public function SWC()

Constructor

Method Detail
dispose()method
override public function dispose():void

Dispose methods

init()method 
override public function init():void

Initialisation method