OLD | NEW |
(Empty) | |
| 1 // object.as |
| 2 // Source for generating test SWF object for the object testcase page. |
| 3 |
| 4 // Compile with SWFTools as3compile: |
| 5 // as3compile -X 250 -Y 250 object.as |
| 6 |
| 7 package |
| 8 { |
| 9 import flash.display.MovieClip |
| 10 |
| 11 public class Main extends MovieClip |
| 12 { |
| 13 function Main() |
| 14 { |
| 15 this.graphics.beginFill(0xcc0000) |
| 16 this.graphics.drawRect(0,0, 250,250); |
| 17 this.graphics.endFill() |
| 18 this.graphics.beginFill(0xffffff) |
| 19 this.graphics.drawCircle(80,80,50) |
| 20 this.graphics.drawCircle(160,160,30) |
| 21 this.graphics.drawCircle(210,210,10) |
| 22 this.graphics.endFill() |
| 23 } |
| 24 } |
| 25 } |
OLD | NEW |