Flash Q

Out of context: Reply #1

  • Started
  • Last post
  • 2 Responses
  • fate0

    don't use buttons, use MC's that act like buttons.

    http://www.fatedesigns.com/flash… for example

    you'll use the basic code:
    onClipEvent(load){
    this.disabled = false;
    this.onRollOver = function(){
    if(!disabled){
    this.gotoAndPlay("overanimation...
    }
    }
    this.onRollOut = function(){
    if(!disabled){
    this.gotoAndPlay("outanimation...
    }
    }
    this.onPress = function(){
    if(!disabled){
    //doSomething
    this.gotoAndStop("overstate")
    }
    }
    }

    So you have some code on the MC that controls animation INSIDE that MC (which also smooths rollover/rollout). This also makes sure you can click and it will stay "highlighted" or whatever because it's not like a button. Hopefully some of this makes sense ;)

View thread