flash on 2011-6-30
♥0 |
Line 22 |
Modified 2011-06-30 16:35:00 |
MIT License
archived:2017-03-20 03:40:21
ActionScript3 source code
/**
* Copyright hacker_kirifla ( http://wonderfl.net/user/hacker_kirifla )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qBZn
*/
package {
import flash.text.TextField;
import flash.display.MovieClip;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var p:Particle=new Particle();
addChild(p);
var t:TextField=new TextField();
t.text="hello";
addChild(t);
}
}
//
import flash.display.*;
public class Particle extends Sprite{
public function Particle(){
graphics.beginFill(0x000000);
graphics.drawCircle(0,0,Math.random()*20+5);
graphics.endFill();
}
}
}