A Canvas layout container defines a rectangular region in which you place child containers and controls. It is the only container that lets you explicitly specify the location of its children within the container by using the x and y properties of each child.
Flex does not resize any children of a Canvas layout container. You must do so explicitly, by specifying the height and width properties of the child.
MXML Syntax
The <mx:Canvas> layout container inherits all the properties of its parent classes, but adds no new ones.
<mx:Canvas
clipContent="true|false"
defaultButton="No default."
hLineScrollSize="1"
hPageScrollSize="5"
hPosition="0"
hScrollPolicy="auto|on|off"
icon="No default."
label="No default."
vLineScrollSize="1"
vPageScrollSize="5"
vPosition="0"
vScrollPolicy="auto|on|off"
/>
| Constructors | |
Canvas
()
Constructor. |
|
| Methods |
| Methods inherited from class mx.containers.Container |
Constructor
getViewMetrics
|
| Methods inherited from class mx.core.View |
init
draw
createChild
getChildAt
getChildIndex
setChildIndex
destroyAllChildren
destroyChild
destroyChildAt
getViewMetrics
|
| Methods inherited from class mx.core.UIComponent |
getFocus
setFocus
getFocusManager
|
| Properties | |
static | version:String
ComponentVersion is for internal use only. |
| className:String
Name of this class. |
| Properties inherited from class mx.core.View |
version
className
numChildren
|
| Properties inherited from class mx.core.UIComponent |
version
enabled
tabIndex
|
| Effects |
| Effects inherited from class mx.core.UIComponent |
showEffect
hideEffect
focusInEffect
focusOutEffect
|
| Effects inherited from class mx.core.UIObject |
creationCompleteEffect
moveEffect
resizeEffect
mouseDownEffect
mouseOverEffect
mouseOutEffect
mouseUpEffect
|
| Events |
| Events inherited from class: mx.containers.Container |
childrenCreated
scroll
|
| Events inherited from class: mx.core.View |
childCreated
childIndexChanged
childDestroyed
|
| Events inherited from class: mx.core.UIComponent |
focusIn
focusOut
keyDown
keyUp
show
hide
valid
invalid
valueCommitted
|
| Styles |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Constructor Detail |
Canvas()
| Property Detail |
className:String
static version:String