Method | Defined By | ||
---|---|---|---|
getDisplayObjectPath(target:DisplayObject, relativeTo:DisplayObject = null):Array [static] | DisplayUtil | ||
scaleToFit(fromW:Number, fromH:Number, toW:Number, toH:Number, outerFit:Boolean = false, alignH:uint, alignV:uint):Rectangle [static] | DisplayUtil |
Constant | Defined By | ||
---|---|---|---|
ALIGN_BOTTOM : uint = 2 [static] | DisplayUtil | ||
ALIGN_CENTER : uint = 0 [static] | DisplayUtil | ||
ALIGN_LEFT : uint = 1 [static] | DisplayUtil | ||
ALIGN_RIGHT : uint = 2 [static] | DisplayUtil | ||
ALIGN_TOP : uint = 1 [static] | DisplayUtil |
getDisplayObjectPath | () | method |
public static function getDisplayObjectPath(target:DisplayObject, relativeTo:DisplayObject = null):Array
Parameters
target:DisplayObject | |
relativeTo:DisplayObject (default = null )
|
Array |
scaleToFit | () | method |
public static function scaleToFit(fromW:Number, fromH:Number, toW:Number, toH:Number, outerFit:Boolean = false, alignH:uint, alignV:uint):Rectangle
Parameters
fromW:Number | |
fromH:Number | |
toW:Number | |
toH:Number | |
outerFit:Boolean (default = false )
| |
alignH:uint (default = NaN )
| |
alignV:uint (default = NaN )
|
Rectangle |
ALIGN_BOTTOM | Constant |
public static const ALIGN_BOTTOM:uint = 2
ALIGN_CENTER | Constant |
public static const ALIGN_CENTER:uint = 0
ALIGN_LEFT | Constant |
public static const ALIGN_LEFT:uint = 1
ALIGN_RIGHT | Constant |
public static const ALIGN_RIGHT:uint = 2
ALIGN_TOP | Constant |
public static const ALIGN_TOP:uint = 1