Fill a circle : Circle « Graphics « Flash / Flex / ActionScript

Home
Flash / Flex / ActionScript
1.Animation
2.Array
3.Class
4.Data Type
5.Development
6.Function
7.Graphics
8.Language
9.Network
10.Regular Expressions
11.Statement
12.String
13.TextField
14.XML
Flash / Flex / ActionScript » Graphics » Circle 
Fill a circle
 
package {
    import flash.display.GradientType;
    import flash.display.Sprite;
    import flash.geom.Matrix;
         
    public class Main extends Sprite {
    
         public function Main() {
              var colors:Array = [];
              var pMatrix:Matrix = new Matrix();
              pMatrix.createGradientBox(70700, -45, -32);
              graphics.beginGradientFill(GradientType.RADIAL, [0xFF0000,0x330000][1,1][0,0xFF], pMatrix);
              graphics.drawCircle(0025);
              graphics.endFill();
         }
    
    }
}

        
Related examples in the same category
1.Create a circle shape
2.Create Rectangle and Circle
3.Creating Custom Visual Classes
4.Circle Clicker
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.