Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Flsah player6 as1 VS player 7 as2

  • 19-07-2006 12:24PM
    #1
    Closed Accounts Posts: 34,808 ✭✭✭✭


    ok, here's the code. It works in player 6 as1 or even player 6 as2 but not player 7 as1 or 7 as2 which is what I want. I've got it to work before and I know it was something simple but you know yourself! I've been looking for ages and I know it's staring at me but I'm numb to it at this stage....

    It's an andy foulds playbackwards script!

    here's the script for the first frame:

    movieclip.prototype.back = function() {
    this.onEnterFrame = function() {
    this.prevFrame();
    if (this._currentframe == 1) {
    delete this.onEnterFrame;
    }
    };
    };
    movieclip.prototype.forward = function() {
    this.onEnterFrame = function() {
    delete this.onEnterFrame;
    this.play();
    };
    };

    then you put this on a button

    on(rollOver){
    mc.forward();

    }
    on(rollOut){
    mc.back();
    }

    and just have any mc on stage with the instance "mc" and place an animation inside it with a stop(); on first and last frame!

    any ideas?


Advertisement