as 2的 Event.REMOVED_FROM_STAGE

方法:
/**
* 
* @param        nowFrame         当前帧
* @param        efListener       enterFrame侦听器
* @param        funCall          函数caller  必须系当前时间轴的root
* @param        fun              函数
* @param        isAdd            是否添加类似 as3 的RemoveFromStage事件
*/
function addRFSHdl(nowFrame:Number,efListener:MovieClip,funCall:MovieClip,fun:Function,isAdd:Boolean){
        if(isAdd==false){
                delete efListener.onEnterFrame;
        }else{
                efListener.onEnterFrame =function (){
                        if(funCall._currentframe!=nowFrame){
                                addRFSHdl(null,efListener,null,null,false);
                                fun.call(funCall);
                        }
                }
        }
}

  as 2的 Event.REMOVED_FROM_STAGE

原文地址:https://www.cnblogs.com/dt1991/p/10943341.html