flash on 2010-4-26
♥0 |
Line 19 |
Modified 2010-04-26 19:41:19 |
MIT License
archived:2017-03-20 00:38:49
ActionScript3 source code
/**
* Copyright 084 ( http://wonderfl.net/user/084 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/pfsa
*/
package{
import flash.display.Sprite;
import flash.events.Event;
public class Tutorial3 extends Sprite {
private var icon:Sprite = new Sprite();
public function Tutorial3() {
icon.graphics.beginFill(0xff6600);
icon.graphics.drawCircle(0, 0, 15);
icon.graphics.endFill();
addChild(icon);
icon.x = 100;
icon.y = 100;
addEventListener(Event.ENTER_FRAME, IconMove);
}
public function IconMove(event:Event):void {
icon.scaleY = 1 + mouseX / 100;
}
}
}