flash flv question

Out of context: Reply #2

  • Started
  • Last post
  • 3 Responses
  • Anarchitect0

    check if the flv responds to _currentframe/_totalframes.

    could try an interval to check if _currentframe == _totalframes, like:

    frame= function(target){
    if (target._currentframe == target._totalframes && target._totalframes){
    clearInterval(frameLoop);
    target.stop();
    this.gotoAndPlay(this._currentfr...
    } else {
    trace (target._currentframe);
    }
    }

    chkFrame = function(target){
    clearInterval(frameLoop);
    frameLoop = setinterval(this,"frame", 20, target);
    }

    //usage
    chkFrame(myMC);

View thread