5 Replies Latest reply on Aug 10, 2006 11:01 AM by kglad

    _droptarget not working in loaded MC

    THE DVH
      I've created a drag and drop game using the _droptarget command and it works fine as a stand alone thing, but once it is loaded into another mc (as it is going to have to be!) it no longer works, my object still snap back to their original position on release, but the _droptargets do not work at all. And I know it's not a _rootlock problem, but I have no idea how to begin to fix it. Here's a sample of my AS. Any help would be great.

      go_for_run.onPress = function() {
      this.startDrag();
      }

      go_for_run.onRelease = function(){
      this.stopDrag();
      if (this._droptarget == "/nine_am"){
      this._x = 439.3;
      this._y = 69;
      }
      else if (this._droptarget == "/ten_am"){
      this._x = 439.3;
      this._y = 94;
      }
      else {
      this._x = 36.3;
      this._y = 51.9;
      }
      }