1、as3.0 仿苹果菜单实例只有第一帧代码 你看得懂代码其它具体过程我就不啰嗦了祝君好运!效果图var long:int;var dx:int;var dy:int;var dr:int;var s:int;stage.addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler);function fl_EnterFrameHandler(event:Event):voidlong = 0;for (var i=1; i11; i+)dx = this“s“ + i.mouseX;dy = this“s“ + i.mouseY;dr=Math
2、.sqrt(dx*dx+dy*dy);if (dr100)this“s“ + i.scaleX=this“s“ + i.scaleY+=(2-(0.8*dr/100)-this“s“ + i.scaleX)/2;/缩放函数某些定值是依据实际影片剪辑尺寸特设的if (this“s“ + i.scaleX 1)this“s“ + i.scaleX = this“s“ + i.scaleY = 1;elsethis“s“ + i.scaleX = this“s“ + i.scaleY += (1-this“s“ + i.scaleY)/3;this“s“ + i.y = 200;this“s“ + i.buttonMode = true;long += this“s“ + i.width;s = Math.round(stage.stageWidth / 2 - long / 2);for (var j=1; j11; j+)if (j=1)s+= this“s“ + j.width / 2;elses+=this“s“ + (j - 1).width/2 + this“s“ + j.width/2+2;this“s“ + j.x = s;