客户从另一个程序员那里得到了一个项目,他在as2中编写了它(我不知道为什么)我只需要添加一些跟踪代码来点击fla文件。这是当前在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);
答案 0 :(得分:1)
var trackingURL = "";
var trackInfo = new LoadVars();
trackInfo.value1 = "";
trackInfo.value2 = "";
var myDate = new Date();
trackInfo.send(trackingURL + "?cacheKiller=" + (myDate.UTC), "_self", "POST");
您显然需要填充trackingURL,value1和value2