客戶端從另一個程序員那裏得到了一個項目,他們在as2中編寫它(我不知道爲什麼)我只需要添加一些跟蹤代碼來將按鈕點擊到fla文件中。這裏是這是目前在AS3需要去AS2代碼:將小as3代碼轉換爲as2
var trackingURL:String = "";
var variables:URLVariables = new URLVariables();
// TODO: Insert Event-specific fields below
variables.value1 = "";
variables.value2 = "";
var request:URLRequest = new URLRequest(trackingURL + "?cacheKiller=" + (new Date()).getTime());
request.data = variables;
request.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.load(request);
......和你有什麼問題嗎? – weltraumpirat 2011-03-19 23:01:07