visited links in flash

Out of context: Reply #1

  • Started
  • Last post
  • 5 Responses
  • unfittoprint0

    as u stated, the usage of a movieclip is better than of a button.

    you should create 4 labels ["over","down","out" and"visited".]. the visted status can be easily acheived by using a boolean variable. for the variable visited and when pressed:

    this.onPress = function(){
    this.gotoAndStop("down");
    this.visited=true;
    }

    and for the other states:

    this.onRollOver = function(){
    this.gotoAndStop("over");
    }

    this.onRollOut = function(){
    if(this.visited){
    this.gotoAndStop("visited")
    } else {
    this.gotoAndStop("out");
    }
    };

View thread