5 Replies Latest reply on Jan 12, 2011 6:05 AM by kglad

    startdrag and hitTest confusion

    schugabug

      Hi,

      I have a button that I want to drag and drop to another movieClip which will then stop playing. the button is dragging and dropping fine, but the hitTest isn't working I'm guessing because the button is a button, not a movieClip.     I am not clear on how to make a button movieClip in as2

       

      This code is on the button frame 1 and works fine

      on (press) {

      startDrag("stopSign");

      }

      on (release) {

      stopDrag();

      }

       

      Here is the hitTest code..which isn't working...When you release the button I want the bus_banner to stop();  I am also not clear on where to put this code.

       

      onClipEvent(enterFrame){

      if (stop_Sign.hitTest(_root.bus_banner)) {

      trace("hit");

      root.bus_banner.stop();

      }

      }

       

      any help is appreciated!