我有一个和这个论坛帖子解释的完全一样的问题
相反,我得到了以下错误
TypeError: Error #1010: A term is undefined and has no properties.
at Untitled_fla::MainTimeline/onButtonClick()我尝试了已回答的解决方案,但不幸的是我仍然收到相同的错误。
我还尝试了下面的帖子答案
Change Banner ClickTag Code to AS3?
然后,当我单击横幅时,我得到以下错误:
TypeError: Error #2007: Parameter url must be non-null.
at global/flash.net::navigateToURL()
at Untitled_fla::MainTimeline/onClick()我的代码:
stage_mc.addEventListener(MouseEvent.MOUSE_UP, onClick);
// The onClick function, how open the new clickTag URL when called
function onClick(e:MouseEvent):void {
if (root.loaderInfo.parameters.clickTAG.substr(0,5) == "http:")
{
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG), "_blank");
}
}发布于 2013-09-13 03:23:53
function onClick(e:MouseEvent):void {
if ( stage.loaderInfo.parameters.clickTAG )
{
navigateToURL(new URLRequest( stage.loaderInfo.parameters.clickTAG ), "_blank");
}
}https://stackoverflow.com/questions/18769730
复制相似问题