flash on 2009-5-25 tomohero forked:0favorite:1lines:20license : MIT License modified : 2009-05-25 14:24:58 Embed Tweet package{ import flash.display.Sprite; import flash.events.MouseEvent; import com.flashdynamix.motion.Tweensy; public class Anime2 extends Sprite{ public function Anime2():void{ stage.addEventListener("mouseMove",eventHandler); } private function eventHandler(event:MouseEvent):void{ var s:Sprite = new Sprite(); s.graphics.beginFill(Math.random()*0x1000000); s.graphics.drawCircle((Math.random()*20)-(Math.random()*20),(Math.random()*20)-(Math.random()*20),Math.random()*4); s.graphics.endFill(); addChild(s); s.x = event.stageX; s.y = event.stageY; Tweensy.to(s,{scaleX:4,scaleY:4},1); } } } Code Fullscreen Preview Fullscreen froyd : tweensyrandom bubbles on mouseMove tweensy stageY stageX scaleY scaleX MouseEvent addEventListener addChild Math.random Sprite