| Package | gs.util |
| Class | public final class DisplayListUtils |
| Method | Defined by | ||
|---|---|---|---|
|
flip(obj:Object, axis:String = "y"):void
[static]
Flip an object on the x or y axis.
| DisplayListUtils | ||
|
localToLocal(from:DisplayObject, to:DisplayObject):Point
[static]
Translate the display object container position in a new container.
| DisplayListUtils | ||
|
scale(target:DisplayObject, scale:Number):void
[static]
Set the scale of an object - updates the x and y.
| DisplayListUtils | ||
|
scaleRatio(target:DisplayObject, targetW:Number, targetH:Number):void
[static]
Scale while retaining original w:h ratio.
| DisplayListUtils | ||
|
scaleToFit(target:DisplayObject, targetW:Number, targetH:Number, center:Boolean = false):void
[static]
Scale target item to fit within target confines.
| DisplayListUtils | ||
| flip | () | method |
public static function flip(obj:Object, axis:String = "y"):voidFlip an object on the x or y axis.
Parametersobj:Object — The object to flip
|
|
axis:String (default = "y") — The axis to flip on - "x" or "y"
|
| localToLocal | () | method |
public static function localToLocal(from:DisplayObject, to:DisplayObject):PointTranslate the display object container position in a new container.
Parametersfrom:DisplayObject |
|
to:DisplayObject |
Point |
| scale | () | method |
public static function scale(target:DisplayObject, scale:Number):voidSet the scale of an object - updates the x and y.
Parameterstarget:DisplayObject — The target item to scale.
|
|
scale:Number — The scale percentage.
|
| scaleRatio | () | method |
public static function scaleRatio(target:DisplayObject, targetW:Number, targetH:Number):voidScale while retaining original w:h ratio.
Parameterstarget:DisplayObject — The item to be scaled.
|
|
targetW:Number — The target item width.
|
|
targetH:Number — The target item height.
|
| scaleToFit | () | method |
public static function scaleToFit(target:DisplayObject, targetW:Number, targetH:Number, center:Boolean = false):voidScale target item to fit within target confines.
Parameterstarget:DisplayObject — The item to be aligned.
|
|
targetW:Number — The target item width.
|
|
targetH:Number — The target item height.
|
|
center:Boolean (default = false) — Center the object within the targetW and targetH.
|