| Package | org.aswing |
| Class | public class LoadIcon |
| Inheritance | LoadIcon AssetIcon |
| Method | Defined by | ||
|---|---|---|---|
|
LoadIcon(url:*, width:Number = -1, height:Number = -1, scale:Boolean = false, context:LoaderContext = null)
Creates a LoadIcon with specified url/URLRequest, width, height.
| LoadIcon | ||
![]() |
getAsset():DisplayObject
| AssetIcon | |
|
getDisplay(c:Component):DisplayObject
| LoadIcon | ||
|
getIconHeight(c:Component):int
| LoadIcon | ||
|
getIconWidth(c:Component):int
| LoadIcon | ||
|
getLoader():Loader
Return the loader
| LoadIcon | ||
| LoadIcon | |||
| LoadIcon | () | constructor |
public function LoadIcon(url:*, width:Number = -1, height:Number = -1, scale:Boolean = false, context:LoaderContext = null)Creates a LoadIcon with specified url/URLRequest, width, height.
Parametersurl:* — the url/URLRequest for a asset location.
|
|
width:Number (default = -1) — (optional)the width of this icon.(miss this param mean use image width)
|
|
height:Number (default = -1) — (optional)the height of this icon.(miss this param mean use image height)
|
|
scale:Boolean (default = false) — (optional)whether scale the extenal image/anim to fit the size
specified by front two params, default is false
|
|
context:LoaderContext (default = null) |
| getDisplay | () | method |
public override function getDisplay(c:Component):DisplayObjectParameters
c:Component |
DisplayObject |
| getIconHeight | () | method |
| getIconWidth | () | method |
| getLoader | () | method |
public function getLoader():LoaderReturn the loader
ReturnsLoader — this loader
|
| updateIcon | () | method |
public override function updateIcon(c:Component, g:Graphics2D, x:int, y:int):voidParameters
c:Component |
|
g:Graphics2D |
|
x:int |
|
y:int |