Guest User

Untitled

a guest
Feb 23rd, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Main extends Sprite
  2. {
  3.     public function new() {
  4.         super();
  5.         cacheAsBitmap = true;
  6.         graphics.drawTriangles([10., 10, 10, 20, 15, 15], [0, 1, 2], null, null, [0xFFFF0000, 0xFF00FF00, 0xFF0000FF]);
  7.     }
  8.     static public function main()
  9.     {
  10.         var stage = Lib.current.stage;
  11.         stage.scaleMode = StageScaleMode.NO_SCALE;
  12.         stage.align = StageAlign.TOP_LEFT;
  13.         // entry point
  14.        
  15.         stage.addChild(new Main() );
  16.     }
  17.    
  18. }
Advertisement
Add Comment
Please, Sign In to add comment