flash help please

Out of context: Reply #2

  • Started
  • Last post
  • 3 Responses
  • honda0

    /*****
    copy and paste this into your timeline. code was written assuming you know .as and is for flash mx.
    ******/
    //set variables
    sound = false;

    //buttons
    button1.onRollOver = function (){
    //check conditions...
    if (sound == false){
    //...allow _mc play state
    yourSound_mc.gotoAndPlay("frameW...
    sound = true;
    }
    }

    button1.onRollOut = function () {
    //check conditions and...
    if (sound == true){
    //...set _mc no play state
    yourSound_mc.gotoAndStop("firstF...
    }
    }

    stop();

View thread