You use the <mx:Image> tag to import JPEG, PNG, and GIF images.
MXML Syntax
The <mx:Image> tag inherits the properties defined by the UIComponent class, and the following properties:
<mx:Image
complete = "Event handler. No default"
maintainAspectRatio = "true|false"
progress = "Event handler. No default" />
scaleContent = "true|false"
source = "No default."
/>
| Methods |
| Methods inherited from class mx.controls.Loader |
load
|
| 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. |
| source:String
The source property has the following two forms:
|
| Properties inherited from class mx.controls.Loader |
version
autoLoad
brokenImage
bytesLoaded
bytesTotal
content
contentPath
percentLoaded
scaleContent
|
| 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.controls.Loader |
complete
progress
|
| 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.controls.Loader |
horizontalAlign
verticalAlign
|
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Property Detail |
source:String
source="@Embed(`relativeOrAbsoluteURL`)"
source="relativeOrAbsoluteURL"
static version:String