广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 2587 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
t0306894 手机
个人文章 个人相簿 个人日记 个人地图
特殊贡献奖
头衔:
版主
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[讨论] 请问这一段语法
_quality = "low";
this.createEmptyMovieClip("mc", 1);
mc.c = 10;
mc.onEnterFrame = function() {
this._parent.attachMovie("particle", "p"+this.c, this.c);
this._parent["p"+this.c].onLoad = function() {
this.wl = 50+50*Math.random();
this.ampl = 1;
this.as = 5*Math.random();
this.sp = 3+1*Math.random();
this.bx = 200;
this._y = 300;
this._x = this.bx;
};
this._parent["p"+this.c].onLoad();
this._parent["p"+this.c].onEnterFrame = function() {
this._x = this.bx+(this.ampl*Math.sin((this._y)/this.wl));
this._y -= this.sp;
this.ampl += this.as;
};
this.c++;
};
stop();
有那位大大可以帮我解释这一段语法呢



介绍大家一个透过facebook来玩的网页游戏 : 海盗王
献花 x0 回到顶端 [楼 主] From:台湾中华电信 | Posted:2005-02-08 11:25 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.015950 second(s),query:15 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言