我最近正在使用evercookie,但遇到一个令人烦恼的问题:在清理Firefox This is where the flash cookie safari just Stored上的所有cookie之前,我无法获得由safari存储的Flash cookie,这是最新的actionscript3我从evercookie/assets/evercookie.fla修改的.0代码:
// * by samy kamkar
// * http://samy.pl
// * code@samy.pl
// * 09/20/2010
import flash.external.*;
import flash.net.SharedObject;
var shared: SharedObject = SharedObject.getLocal("evercookie");
var allFlashVars: Object = LoaderInfo(this.root.loaderInfo).parameters;
var everdata: String = allFlashVars.everdata;
if (everdata)
{
var newdata = everdata.split('=');
if (!shared.data.cookie)
{
shared.data.cookie = everdata;
// shared.setProperty('cookie', everdata);
}
var str:String = shared.data.cookie;
var results:Array = str.split('&');
for (var i = 0; i < results.length; i++)
{
var elem:Array = results[i].split('=');
if (elem[0] != newdata[0])
everdata += '&' + results[i];
}
shared.data.cookie = everdata.replace('\\','\\\\');
ExternalInterface.call("_evercookie_flash_var", shared.data.cookie);
shared.flush();
} else {
ExternalInterface.call("_evercookie_flash_var", shared.data.cookie);
}
ExternalInterface.marshallExceptions = true;
// getURL("javascript:if(_evercookie_flash_var)_evercookie_flash_var('"
+ (shared.data.cookie) + "');");
我可以正确地编译为evercookie.swf,是我的evercookie.fla错误还是某个地方错误,有人可以帮助我吗?请...