Flash Q

  • Started
  • Last post
  • 2 Responses
  • 67nj

    i know i'm flash nerd but it seems everyone has the problems he deserves...at least so do I, well...my pb:
    i have a map with some locations i want to highlight and get some information, so i did some buttons that call their mclips, so far so good...now i want to mantain the highlight while i view the targeted movie clip that the button calls...how?
    i tried to put the high state of the button in the movieclip but then i have a conflict with other buttons below....

  • 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 ;)

  • 67nj0

    thanks fate!
    let's see if i can figure out something good for me! i'll let you know!