root/lang/legacy-actionscript/as2draw/U.as
@
30290
| Revision 3302, 251 bytes (checked in by gyuque, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | class U /*Utility*/ |
| 2 | { |
| 3 | public static function rect(g:MovieClip, x:Number, y:Number, w:Number, h:Number, close) |
| 4 | { |
| 5 | g.moveTo(x , y ); |
| 6 | g.lineTo(x+w, y ); |
| 7 | g.lineTo(x+w, y+h); |
| 8 | g.lineTo(x , y+h); |
| 9 | if (close) |
| 10 | g.lineTo(x, y); |
| 11 | } |
| 12 | } |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)