Package | com.gestureworks.cml.elements |
Class | public class Frame |
Inheritance | Frame ![]() ![]() ![]() |
var frame:Frame = new Frame(); frame.width = 300; frame.height = 300; frame.x = 700; frame.y = 200; frame.frameAlpha = .7; frame.frameColor = 0xAAAABB; frame.frameThickness = 20; frame.init(); addChild(frame);
Property | Defined By | ||
---|---|---|---|
![]() | anchorX : Number
Sets the anchor X of curve. | Graphic | |
![]() | anchorY : Number
Sets the anchor Y of curve. | Graphic | |
![]() | angleLength : Number
Set the angle length of the circle segment in degrees. | Graphic | |
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
![]() | bottomLeftRadius : Number
sets the bottom left radius of the graphic object
| Graphic | |
![]() | bottomRightRadius : Number
sets the bottom right radius of the graphic object
| Graphic | |
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | clockwise : Boolean
Set if the circle segment should go clockwise/
Shape must be circleSegment. | Graphic | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
![]() | color : uint
Sets fill color when fill type is color
| Graphic | |
![]() | controlX : Number
Sets the control X of curve. | Graphic | |
![]() | controlY : Number
Sets the control y value of curve. | Graphic | |
![]() | cornerHeight : Number
Sets the height of the ellipse that is used to round the rectangle. | Graphic | |
![]() | cornerWidth : Number
Sets the width of the ellipse that is used to round the rectangle. | Graphic | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | fill : String
Sets fill type, choose: color, gradient
todo: implement shader and bitmap fills
| Graphic | |
![]() | fillAlpha : Number
Sets fill alpha when fill type is color
| Graphic | |
frameAlpha : Number
Sets frame thickness
| Frame | ||
frameColor : Number
Sets frame thickness
| Frame | ||
frameShape : String
Sets frame shape
| Frame | ||
frameThickness : Number
Sets frame thickness
| Frame | ||
![]() | gradientAlphas : String
Sets gradient alphas when fill type is gradient
Alpha values corespond to the colors in the gradientColors array
Ordered list, max 12 (ex: 1, 1, 1)
| Graphic | |
![]() | gradientColors : String
Sets gradient colors when fill type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| Graphic | |
![]() | gradientFocalPointRatio : Number
A number that controls the location of the focal point of the gradient. | Graphic | |
![]() | gradientHeight : Number
The height (in pixels) to which the gradient will spread. | Graphic | |
![]() | gradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| Graphic | |
![]() | gradientRatios : String
Color distribution ratios; valid values are 0-255. | Graphic | |
![]() | gradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | Graphic | |
![]() | gradientSpread : String
Specifies which gradient spread method to use. | Graphic | |
![]() | gradientType : String
Sets gradient type when fill type is gradient. | Graphic | |
![]() | gradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | Graphic | |
![]() | gradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | Graphic | |
![]() | gradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | Graphic | |
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
Sets graphics height. | Graphic | |
![]() | heightPercent : Number [override]
Sets the height relative to the parent container. | Graphic | |
![]() | id : String
Returns the object's id. | TouchContainer | |
![]() | innerRadius : Number
Set the inner radius of the circle segment in pixels. | Graphic | |
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
![]() | line : String
Sets line type, choose: color, gradient
todo: implement shader and bitmap lines
| Graphic | |
![]() | lineAlpha : Number
Sets the alpha of the line
| Graphic | |
![]() | lineCaps : String
Specifies the type of cap on the line ends
Choose: none, round, or square
| Graphic | |
![]() | lineColor : uint
Sets the color of the line
Line type must be color
| Graphic | |
![]() | lineGradientAlphas : String
Sets lineGradient alphas when line type is gradient
Alpha values corespond to the colors in the gradient color list
Ordered list, max 12 (ex: 1, 1, 1)
| Graphic | |
![]() | lineGradientColors : String
Sets lineGradient colors when line type is gradient
Ordered list, max 12 (ex: 0x000000, 0x555555, 0xFFFFFF)
| Graphic | |
![]() | lineGradientFocalPointRatio : Number
A number that controls the location of the focal point of the lineGradient. | Graphic | |
![]() | lineGradientHeight : Number
The height (in pixels) to which the gradient will spread. | Graphic | |
![]() | lineGradientInterpolation : String
Specifies which interpolation value to use: RGB or linearRGB
| Graphic | |
![]() | lineGradientRatios : String
Color distribution ratios; valid values are 0-255. | Graphic | |
![]() | lineGradientRotation : Number
Sets the rotation (in degrees) that will be applied to the gradient. | Graphic | |
![]() | lineGradientSpread : String
Specifies which gradient spread method to use. | Graphic | |
![]() | lineGradientType : String
Sets lineGradient type when line type is gradient. | Graphic | |
![]() | lineGradientWidth : Number
Sets the width (in pixels) to which the gradient will spread. | Graphic | |
![]() | lineGradientX : Number
Sets how far (in pixels) the gradient is shifted horizontally. | Graphic | |
![]() | lineGradientY : Number
Sets how far (in pixels) the gradient is shifted vertically. | Graphic | |
![]() | lineJoints : String
Specifies the type of joint on the line ends
Choose: miter, round, or bevel
| Graphic | |
![]() | lineMiterLimit : Number
Specifies the limit at which the miter is cut off
| Graphic | |
![]() | linePixelHinting : Boolean
Specifies whether to hint strokes to full pixels. | Graphic | |
![]() | lineScaleMode : String
Specifies how the line stroke size changes when graphic is scaled
Choose: normal, none, or vertical
normal - Always scale the line thickness when the object is scaled (the default). | Graphic | |
![]() | lineStroke : Number
Sets the width of the line stroke (in pixels)
| Graphic | |
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
![]() | pathCommands : String
Sets the path moveTo and lineTo values
| Graphic | |
![]() | pathCommandsVector : Vector.<int> | Graphic | |
![]() | pathCoordinates : String
Sets the path coordinates
| Graphic | |
![]() | pathCoordinatesVector : Vector.<Number> | Graphic | |
![]() | position : *
Sets the position
| TouchContainer | |
![]() | radius : Number
Sets radius (in pixels) of circle. | Graphic | |
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
![]() | shape : String
Sets predefined shape type. | Graphic | |
![]() | sound : String | TouchContainer | |
![]() | startAngle : Number
Set the start angle of the circle segment in degrees, clockwise from X axis. | Graphic | |
![]() | startX : Number
Sets starting X position for curve
| Graphic | |
![]() | startY : Number
Sets starting Y position for curve
| Graphic | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
![]() | topLeftRadius : Number
sets the top left radius of the graphic object
| Graphic | |
![]() | topRightRadius : Number
sets the top right radius of the grpahic object
| Graphic | |
![]() | width : Number [override]
Sets graphics width. | Graphic | |
![]() | widthPercent : Number [override]
Sets the width relative to the parent container. | Graphic |
Method | Defined By | ||
---|---|---|---|
Frame()
Constructor
| Frame | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clear():void
Clears the graphics that were drawn to this Graphics object,
and resets fill and line style settings. | Graphic | |
clone():* [override]
Returns a clone of self
| Frame | ||
![]() |
Copies all of drawing commands from the source Graphics object
into the calling Graphics object. | Graphic | |
dispose():void [override]
Destructor
| Frame | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initialization method
| Frame | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
updateGraphic():void [override]
Update frame graphics
| Frame | ||
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
frameAlpha | property |
frameAlpha:Number
Sets frame thickness
The default value is 100
.
public function get frameAlpha():Number
public function set frameAlpha(value:Number):void
frameColor | property |
frameColor:Number
Sets frame thickness
The default value is 100
.
public function get frameColor():Number
public function set frameColor(value:Number):void
frameShape | property |
frameShape:String
Sets frame shape
The default value is "rectangle"
.
public function get frameShape():String
public function set frameShape(value:String):void
frameThickness | property |
frameThickness:Number
Sets frame thickness
The default value is 100
.
public function get frameThickness():Number
public function set frameThickness(value:Number):void
Frame | () | Constructor |
public function Frame()
Constructor
clone | () | method |
override public function clone():*
Returns a clone of self
Returns* —
|
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialization method
updateGraphic | () | method |
override public function updateGraphic():void
Update frame graphics