Package | com.gestureworks.cml.element |
Class | public class SWC |
Inheritance | SWC ElementFactory flash.display.Sprite |
Subclasses | SWCElement |
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
Property | Defined By | ||
---|---|---|---|
alpha : Number [override] [write-only]
sets the alpha for display objects
| ElementFactory | ||
blur : Boolean
Sets the drop shadow effect
| ElementFactory | ||
bottom : Number
sets the bottom value
| ElementFactory | ||
class_ : String
Object's css class;
| ElementFactory | ||
className : String
sets the class name of displayobject
| ElementFactory | ||
classRef : String
Loads a swc library class. | SWC | ||
cmlIndex : int
sets the cml index
| ElementFactory | ||
color : Number
Sets the color
| SWC | ||
debugStyle : *
sets the debug style
| ElementFactory | ||
displayEvents : String
Use for dispatch completes. | ElementFactory | ||
dropShadow : Boolean
Sets the drop shadow effect
| ElementFactory | ||
height : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
heightPercent : String
sets the height percent of display object
| ElementFactory | ||
horizontalCenter : Number
sets the horizontal center of display object
| ElementFactory | ||
id : String
sets the id of child
| ElementFactory | ||
index : int
sets the index of display object
| ElementFactory | ||
left : Number
sets left value
| ElementFactory | ||
propertyStates : Array Deprecated: Please Use state | ElementFactory | ||
right : Number
sets the right value
| ElementFactory | ||
scale : Number
Sets both the x and y scale values
| ElementFactory | ||
scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
state : Array
property states array
| ElementFactory | ||
top : Number
sets top value
| ElementFactory | ||
verticalCenter : Number
sets the vertical center of display object
| ElementFactory | ||
width : Number [override]
Sets width of the display object in pixels
| ElementFactory | ||
widthPercent : String
sets the percent of width of display object
| ElementFactory |
Method | Defined By | ||
---|---|---|---|
SWC()
Constructor
| SWC | ||
clone():*
Returns clone of self
| ElementFactory | ||
displayComplete():void
CML callback
| ElementFactory | ||
dispose():void [override]
Dispose methods
| SWC | ||
init():void [override]
Initialisation method
| SWC | ||
parseCML(cml:XMLList):XMLList
parses cml file
| ElementFactory | ||
postparseCML(cml:XMLList):void
post parses the cml file
| ElementFactory | ||
updateProperties(state:Number = 0):void
this method updates the properties
| ElementFactory |
classRef | property |
classRef:String
Loads a swc library class. It must be pre-loaded through the library kit
public function get classRef():String
public function set classRef(value:String):void
color | property |
color:Number
Sets the color
public function get color():Number
public function set color(value:Number):void
SWC | () | Constructor |
public function SWC()
Constructor
dispose | () | method |
override public function dispose():void
Dispose methods
init | () | method |
override public function init():void
Initialisation method