| Package | org.aswing |
| Class | public class AttachIcon |
| Inheritance | AttachIcon AssetIcon |
| Method | Defined by | ||
|---|---|---|---|
|
AttachIcon(assetClassName:String, applicationDomain:ApplicationDomain = null, width:int = -1, height:int = -1, scale:Boolean = false)
Attach a mc from library to be a icon.
If speciaficed the width and height, the mc will be scale to be this size if scale setted true. | AttachIcon | ||
![]() |
getAsset():DisplayObject
| AssetIcon | |
![]() |
getDisplay(c:Component):DisplayObject
| AssetIcon | |
![]() |
getIconHeight(c:Component):int
| AssetIcon | |
![]() |
getIconWidth(c:Component):int
| AssetIcon | |
![]() | AssetIcon | ||
| Method | Defined by | ||
|---|---|---|---|
|
getAttachDisplayObject(assetClassName:String, ad:ApplicationDomain):DisplayObject
return the attach displayObject
if cannot create from Class then return null
| AttachIcon | ||
![]() |
setHeight(height:int):void
| AssetIcon | |
![]() |
setWidth(width:int):void
| AssetIcon | |
| AttachIcon | () | constructor |
public function AttachIcon(assetClassName:String, applicationDomain:ApplicationDomain = null, width:int = -1, height:int = -1, scale:Boolean = false)
Attach a mc from library to be a icon.
If speciaficed the width and height, the mc will be scale to be this size if scale setted true.
else the width and height will be the symbol's width and height.
assetClassName:String — the linkageID of the symbol to attach
|
|
applicationDomain:ApplicationDomain (default = null) — the loaderObject with attach symbol,if loader is null then loader is root
|
|
width:int (default = -1) — (optional)if you specifiled the width of the Icon, and scale is true,
the mc will be scale to this width when paint.
|
|
height:int (default = -1) — (optional)if you specifiled the height of the Icon, and scale is true,
the mc will be scale to this height when paint.
|
|
scale:Boolean (default = false) — (optional)whether scale MC to fix the width and height specified. Default is true
|
| getAttachDisplayObject | () | method |
protected function getAttachDisplayObject(assetClassName:String, ad:ApplicationDomain):DisplayObjectreturn the attach displayObject if cannot create from Class then return null
ParametersassetClassName:String |
|
ad:ApplicationDomain |
DisplayObject |