class org.aswing.AssetItem
import org.aswing.MultipleAssetIcon;
AssetItem is a holder for asset properties.
@see com.awssoft.fwindows.components.MultipleAssetIcon
Instance Fields
function new(?asset:DisplayObject = null, ?width:Int = -1, ?height:Int = -1, ?scale:Bool = false, ?hPosition:Int = -1, ?vPosition:Int = -1): Void
Creates a AssetItem that holds asset properties.
asset | The display object that will be shown. |
width | (optional)if you specifiled the width of the Icon, and scale is true, the mc will be scale to this width when paint. If you do not specified the with, it will use asset.width. |
height | (optional)if you specifiled the height of the Icon, and scale is true, the mc will be scale to this height when paint. If you do not specified the height, it will use asset.height. |
scale | (optional)whether scale MC to fix the width and height specified. Default is true |
hPosition | The horizontal position of asset display object (affect only if scale is not true and asset size is bigged than asset display object) |
vPosition | The vertical position of asset display object (affect only if scale is not true and asset size is bigged than asset display object) |