flash on 2012-12-27
♥0 |
Line 22 |
Modified 2012-12-27 12:46:59 |
MIT License
archived:2017-03-20 15:50:59
ActionScript3 source code
/**
* Copyright andrewexex886 ( http://wonderfl.net/user/andrewexex886 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iGgz
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
addChild(new lightblob());
trace(123);
}
}
class lightblob extends Sprite():void{
public function lightblob(){
graphics.beginFill(0xFFFF00,1);
graphics.drawCircle(0, 0, 5);
graphics.endFill();
}
public function on():void{
this.alpha = 1;
}
public function off():void{
this.alpha = 0.3;
}
}
}