forked from: flash on 2012-3-5
♥0 |
Line 23 |
Modified 2012-03-06 11:54:04 |
MIT License
archived:2017-03-20 01:26:11
ActionScript3 source code
/**
* Copyright MMMMMonchi ( http://wonderfl.net/user/MMMMMonchi )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/nkZA
*/
// forked from caique_drive's flash on 2012-3-5
package {
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.Event;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var test:Shape = new Shape();
test.graphics.beginFill(0x00aaff);
test.graphics.drawCircle(0, 0, 30);
test.graphics.endFill();
test.x = 200;
test.y = 200;
this.addChild(test);
test.addEventListener(Event.ENTER_FRAME, loop);
function loop(event:Event):void {
test.x += 1.5;
if(test.x > 65){
test.x = 0;
}
}
}
}
}