加湿器效果

package {
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.events.Event;
	import flash.ui.Mouse;


	/*
	      *author : SinSoul 
	      *blogs: http://www.cnblogs.com/sinsoul
	 
	*/
	public class ji extends MovieClip {
		public function ji() {
			Mouse.hide();
			stage.addEventListener(Event.ENTER_FRAME,aa);
		}
		function aa(e:Event):void {
			var ss:yu=new yu();
			mohu.addChild(ss);
			ss.x=mouseX-50;
			ss.y=mouseY-90;
		}
	}
}

posted @ 2010-11-05 14:44  sinsoul  阅读(222)  评论(0编辑  收藏  举报