我在 Flash 中创建了 Accordion。我收到以下错误
TypeError: Error #1010: A term is undefined and has no properties.
at accordionSub_fla::accordionMain_1/mouserOver()
但是,这个错误只反映在 Panel3 上,我有 9 个面板,除了 Panel3 之外,所有面板都工作正常,而且这个 Panel3 不只是打开。下面是函数代码
function mouserOver(e:MouseEvent):void {
var overed:MovieClip = MovieClip(e.target);
for(var i:int=0; i<numChildren; i++)
{
var mc:MovieClip = MovieClip(getChildAt(i));
if(mc.props.ind <= overed.props.ind)
{
TweenLite.to(mc, 1, {x:mc.props.lx, ease:Expo.easeOut});
var request:URLRequest = new URLRequest(mc.props.links);
myTimer.start();
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, urlAction);
function urlAction(evt:TimerEvent)
{
navigateToURL(request, 'myFrame');
}
}
else
{
TweenLite.to(mc, 1, {x:mc.props.rx, ease:Expo.easeOut});
}
}}
任何立即响应都会有所帮助。谢谢。