Show
Ignore:
Timestamp:
12/19/07 04:35:09 (13 months ago)
Author:
gyuque
Message:

lang/legacy-actionscript/as2draw: added color button

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/legacy-actionscript/as2draw/U.as

    r3300 r3302  
    11class U /*Utility*/ 
    22{ 
    3         public static function rect(g:MovieClip, x:Number, y:Number, w:Number, h:Number) 
     3        public static function rect(g:MovieClip, x:Number, y:Number, w:Number, h:Number, close) 
    44        { 
    55                g.moveTo(x  , y  ); 
     
    77                g.lineTo(x+w, y+h); 
    88                g.lineTo(x  , y+h); 
     9                if (close) 
     10                        g.lineTo(x, y); 
    911        } 
    1012}