Summoning Unfit

Out of context: Reply #1

  • Started
  • Last post
  • 2 Responses
  • Anarchitect0

    well, a lot of that code is deprecated.

    first, don't put code directly on an instance,muse action layers only.

    name your instance using the property inspector [ie., myMC], and write this on an action layer:

    myMC.onRollOver = function(){
    this.onEnterFrame = this.nextFrame();
    }

    myMC.onRollOut = function(){
    this.onEnterFrame = this.prevFrame();
    }

    for it to stop when it reaches the end you sould include in your nextframe function something like:

    if(this._currentframe == this._totalframes){
    delete this.onEnterFrame;
    }

    and on your prevFrame
    function:

    if(this._currentframe == 1){
    delete this.onEnterFrame;
    }

View thread