2 Replies Latest reply on Jun 24, 2006 8:42 AM by Newsgroup_User

    advancing my AS knowledge

    DPSwebmaster Level 1
      I am implementing a drag and drop script which works fine, but I want to advance the script so an event ocurrs after the drop happens, for instance say the movie clip that you are dropping into changes color or displays text upon release.

      My current code:

      n (press) {
      startDrag ("_root.button");
      }
      on (release) {
      stopDrag ();
      if (_root.yellow._droptarget == "/square") {
      _root.square.gotoandStop("button");
      }
      }


      How can I add an event like I want? (changing color of square instance when drop is complete).


      thanks,