廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 2572 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為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.017465 second(s),query:15 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言