加湿器效果
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; } } }