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)

function clone(): AssetItem

Clone the asset item.

returns

Clone of this

function getAsset(): DisplayObject

Return asset.

function getHeight(): Int

Return asset height.

function getHorizontalPosition(): Int

Return hPosition.

function getScale(): Bool

Return whatever the asset need to be scaled.

function getVerticalPosition(): Int

Return vPosition.

function getWidth(): Int

Return asset width.

function setAsset(asset:DisplayObject): Void

Set asset.

function setHeight(height:Int): Void

Set asset height.

function setHorizontalPosition(hPosition:Int): Void

Set hPosition.

function setScale(scale:Bool): Void

Set whatever the asset need to be scaled.

function setVerticalPosition(vPosition:Int): Void

Set vPosition.

function setWidth(width:Int): Void

Set asset width.