home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.novell.com
/
2014.06.ftp.novell.com.tar
/
ftp.novell.com
/
forge
/
camtasia.msi
/
Cabs.w1.cab
/
camtasia_player_ext.swf9
/
scripts
/
__Packages
/
com
/
techsmith
/
utils
/
shapes
/
Rectangle.as
Wrap
Text File
|
2009-08-17
|
1KB
|
36 lines
class com.techsmith.utils.shapes.Rectangle
{
function Rectangle()
{
}
static function draw(scope, color, width, height, alpha, lStyle, location)
{
if(lStyle != null)
{
scope.lineStyle(lStyle.thickness,lStyle.rgb,lStyle.alpha,lStyle.pixelHinting,lStyle.noScale,lStyle.capsStyle,lStyle.jointStyle,lStyle.miterLimit);
}
else
{
scope.lineStyle(undefined);
}
scope.beginFill(color,alpha);
if(location != null)
{
scope.moveTo(location.x,location.y);
scope.lineTo(width + location.x,location.y);
scope.lineTo(width + location.x,location.y + height);
scope.lineTo(location.x,location.y + height);
scope.lineTo(location.x,location.y);
}
else
{
scope.moveTo(0,0);
scope.lineTo(width,0);
scope.lineTo(width,height);
scope.lineTo(0,height);
scope.lineTo(0,0);
}
scope.endFill();
}
}