as3.0仿苹果菜单实例.doc

上传人:11****ws 文档编号:2989968 上传时间:2019-05-16 格式:DOC 页数:2 大小:120KB
下载 相关 举报
as3.0仿苹果菜单实例.doc_第1页
第1页 / 共2页
as3.0仿苹果菜单实例.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

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;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 实用文档资料库 > 策划方案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。