5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2007-09-22
http://yuheduo.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/07/08 | actionscript实现标明菜单
类别(Flash学习)
|
评论
(0)
|
阅读(96)
|
发表于 23:15
actionscript实现标明菜单
代码如下:
--------------------------------------------------------------
target_x=menu_mc1._x;
vx=0;
for(i=1;i<=4;i++){
_root["menu_mc"+i].onRollOver=function(){
_root.target_x=this._x;
//trace(target_x);
}
}
mc.onEnterFrame=function(){
//var vx=0 ;
vx=(_root.target_x-this._x)/3+vx*0.6;
trace(vx);
this._x+=vx;
}
--------------------------------------------------------------
0
评论
Comments
日志分类
首页
[149]
blog记事
[7]
Flash学习
[85]
教学记忆
[21]
娱乐影音
[9]
我的收藏
[27]
PhotoShop学习
[0]