as3错误代码对应的中文说明,摘自flash9中文帮助文档
1000
对 _ 的引用不明确。
引用可能指向多项。例如,下面使用了 rss 和 xml 命名空间。每个命名空间为 hello() 函数定义了不同的值。trace(hello()) 语句返回此错误,因为它无法确定使用哪个命名空间。
private namespace rss; private namespace xml; public function ErrorExamples() { use namespace rss; use namespace xml; trace(hello()); } rss function hello():String { return “hola”; } xml function hello():String { return “foo”; }
通过使用具体的引用来纠正不明确的引用。下面的示例 使用 namespace::function 这种格式指定所要使用的命名空间:
阅读全文…
鞋衫各式名品专卖
最近在用FLEX写东西,运行HTML时候总提示:Alternate HTML content should be placed here. This content requires the Adobe Flash Player,开始以为FLASH版本问题,重新装了几次还是老样子,打开JS文件调试了会,终于知道问题出在哪了。
在生成的JS文件中有段这样的语句:
function ControlVersion()

…{
var version;
var axo;
var e;

// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn’t in the registry


try …{
// version will be set for 7.X or greater players
axo = new ActiveXObject(“ShockwaveFlash.ShockwaveFlash.7“);
version = axo.GetVariable(“$version“);

} catch (e) …{
}

if (!version)

…{

try …{
// version will be set for 6.X players only
axo = new ActiveXObject(“ShockwaveFlash.ShockwaveFlash.6“);
// installed player is some revision of 6.0
// GetVariable(“$version”) crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = “WIN 6,0,21,0“;

// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = “always“;

// safe to call for 6.0r47 or greater
version = axo.GetVariable(“$version“);


} catch (e) …{
}
}

if (!version)

…{

try …{
// version will be set for 4.X or 5.X player
axo = new ActiveXObject(“ShockwaveFlash.ShockwaveFlash.3“);
version = axo.GetVariable(“$version“);

} catch (e) …{
}
}

if (!version)

…{

try …{
// version will be set for 3.X player
axo = new ActiveXObject(“ShockwaveFlash.ShockwaveFlash.3“);
version = “WIN 3,0,18,0“;

} catch (e) …{
}
}

if (!version)

…{

try …{
// version will be set for 2.X player
axo = new ActiveXObject(“ShockwaveFlash.ShockwaveFlash“);
version = “WIN 2,0,0,11“;

} catch (e) …{
version = -1;
}
}
return version;
}

阅读全文…
近期评论