Flash adobe air gotoandstop不起作用

Flash adobe air gotoandstop不起作用,flash,air,adobe,Flash,Air,Adobe,我有这样一个问题: 我有一些电影剪辑,上面有两个不同的孩子:指令和背景动画。它们有相同的结构,除了一件事:指令有经典的吐温,背动画有形状吐温。我正在AdobeAir2.6上运行它。每个子对象上都有两个标签:显示、隐藏。所有停止帧都存在。我有这样一个代码来控制它们: protected function fadeOut(event:Event):void { line_mc.removeEventListener(Event.COMPLETE,fadeOut);

我有这样一个问题:

我有一些电影剪辑,上面有两个不同的孩子:指令和背景动画。它们有相同的结构,除了一件事:指令有经典的吐温,背动画有形状吐温。我正在AdobeAir2.6上运行它。每个子对象上都有两个标签:显示、隐藏。所有停止帧都存在。我有这样一个代码来控制它们:

protected function fadeOut(event:Event):void {
            line_mc.removeEventListener(Event.COMPLETE,fadeOut);
            if (line_mc.hasOwnProperty('back_mask_anim')){
                line_final_anim_count++;
                (line_mc['back_mask_anim'] as MovieClip).addEventListener(Event.ENTER_FRAME, checkFinalAnimComplete);
                (line_mc['back_mask_anim'] as MovieClip).gotoAndPlay("show");//show
            }
            if (line_mc.hasOwnProperty('instruction')){
                line_final_anim_count++;
                (line_mc['instruction'] as MovieClip).addEventListener(Event.ENTER_FRAME, checkFinalAnimComplete);
                (line_mc['instruction'] as MovieClip).gotoAndPlay('hide');
            }
            if(line_final_anim_count == 0){ 
                setTimeout(lineComplete,time_before_fade_out);
            }
        }

        protected function checkFinalAnimComplete(event:Event):void {
            var anim_mc:MovieClip = event.currentTarget as MovieClip;
            trace("anim_mc.frame " + anim_mc.currentFrame + " of " +anim_mc.totalFrames + 
            "name = " + anim_mc.name);
            if(anim_mc.currentFrame == anim_mc.totalFrames) {
                anim_mc.removeEventListener(Event.ENTER_FRAME, checkFinalAnimComplete);
                line_final_anim_count--;
            }
            trace("line_final_anim_count: " + line_final_anim_count);
            if(line_final_anim_count == 0){ 
                lineComplete();
            }
        }
但是!!!指令-播放良好,返回动画-在停止帧上进入无休止的循环。 当我这样做的时候:作为MovieClip.gotoAndPlay7的line_mc['back_mask_anim'];停止帧后的下一帧-全部正常。怎么了?有人面临这样的问题吗?Thanx.

我解决了这个问题。 也许有人会帮上忙


我解决了这个奇怪的问题,创建了一个包含舞台上所有东西的movieclip。gotoandstop函数似乎可以与movieclips一起使用,但不能直接与舞台一起使用

希望我能帮忙