home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Puzzle
/
filler.swf
/
scripts
/
mx
/
utils
/
GraphicsUtil.as
< prev
next >
Wrap
Text File
|
2008-09-02
|
2KB
|
56 lines
package mx.utils
{
import flash.display.Graphics;
import mx.core.mx_internal;
use namespace mx_internal;
public class GraphicsUtil
{
mx_internal static const VERSION:String = "2.0.1.0";
public function GraphicsUtil()
{
super();
}
public static function drawRoundRectComplex(param1:Graphics, param2:Number, param3:Number, param4:Number, param5:Number, param6:Number, param7:Number, param8:Number, param9:Number) : void
{
var _loc10_:Number = NaN;
var _loc11_:Number = NaN;
var _loc12_:Number = NaN;
var _loc13_:Number = NaN;
var _loc14_:Number = NaN;
_loc10_ = param2 + param4;
_loc11_ = param3 + param5;
_loc12_ = param4 < param5 ? Number(param4 * 2) : Number(param5 * 2);
param6 = param6 < _loc12_ ? Number(param6) : Number(_loc12_);
param7 = param7 < _loc12_ ? Number(param7) : Number(_loc12_);
param8 = param8 < _loc12_ ? Number(param8) : Number(_loc12_);
_loc13_ = (param9 = param9 < _loc12_ ? Number(param9) : Number(_loc12_)) * 0.292893218813453;
_loc14_ = param9 * 0.585786437626905;
param1.moveTo(_loc10_,_loc11_ - param9);
param1.curveTo(_loc10_,_loc11_ - _loc14_,_loc10_ - _loc13_,_loc11_ - _loc13_);
param1.curveTo(_loc10_ - _loc14_,_loc11_,_loc10_ - param9,_loc11_);
_loc13_ = param8 * 0.292893218813453;
_loc14_ = param8 * 0.585786437626905;
param1.lineTo(param2 + param8,_loc11_);
param1.curveTo(param2 + _loc14_,_loc11_,param2 + _loc13_,_loc11_ - _loc13_);
param1.curveTo(param2,_loc11_ - _loc14_,param2,_loc11_ - param8);
_loc13_ = param6 * 0.292893218813453;
_loc14_ = param6 * 0.585786437626905;
param1.lineTo(param2,param3 + param6);
param1.curveTo(param2,param3 + _loc14_,param2 + _loc13_,param3 + _loc13_);
param1.curveTo(param2 + _loc14_,param3,param2 + param6,param3);
_loc13_ = param7 * 0.292893218813453;
_loc14_ = param7 * 0.585786437626905;
param1.lineTo(_loc10_ - param7,param3);
param1.curveTo(_loc10_ - _loc14_,param3,_loc10_ - _loc13_,param3 + _loc13_);
param1.curveTo(_loc10_,param3 + _loc14_,_loc10_,param3 + param7);
param1.lineTo(_loc10_,_loc11_ - param9);
}
}
}