tech/FLASH

rewind

lehero 2008. 9. 23. 16:18


on(release){
    _root.onEnterFrame = function(){
        trace(_root._currentframe);
        if(_root._currentframe == 1){
            _root.gotoAndStop(_root._totalframes);
        }else{
            _root.gotoAndStop(_root._currentframe - 1);
        }
    }
}

----

_root.onEnterFrame = null;

or

on(release){
    _root.onEnterFrame = null;
}