home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
HexiomConnect.swf
/
scripts
/
mx
/
core
/
SpriteAsset.as
< prev
next >
Wrap
Text File
|
2008-08-29
|
1KB
|
54 lines
package mx.core
{
use namespace mx_internal;
public class SpriteAsset extends FlexSprite implements IFlexAsset, IFlexDisplayObject, IBorder
{
mx_internal static const VERSION:String = "3.0.0.0";
private var _measuredHeight:Number;
private var _measuredWidth:Number;
public function SpriteAsset()
{
super();
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth() : Number
{
return _measuredWidth;
}
public function get measuredHeight() : Number
{
return _measuredHeight;
}
public function setActualSize(param1:Number, param2:Number) : void
{
width = param1;
height = param2;
}
public function move(param1:Number, param2:Number) : void
{
this.x = param1;
this.y = param2;
}
public function get borderMetrics() : EdgeMetrics
{
if(scale9Grid == null)
{
return EdgeMetrics.EMPTY;
}
return new EdgeMetrics(scale9Grid.left,scale9Grid.top,Math.ceil(measuredWidth - scale9Grid.right),Math.ceil(measuredHeight - scale9Grid.bottom));
}
}
}