4 Replies Latest reply on Nov 20, 2006 8:24 AM by kenknapp

    Button controls failing

    kenknapp
      I am trying to raise and lower several windows using rollover buttons. I need it to raise on rollover and lower on release. I can get it to do one but not the other. can you help me out with the formating to get this to work properly? It's driving me insave! here is the start to my code.

      onClipEvent (load) {
      _x=0;
      _y=0;
      speed = 10;

      }

      onClipEvent(enterFrame) {
      _x+=(endX-_x)/speed;
      _y+=(endY-_y)/speed;


      _root.selections1.multifunction.onRollOver= function (){
      endX=0;
      endY=372;

      }
      }

      selections1 is my button and multifunction is my window movieclip