A/S Question

Out of context: Reply #7

  • Started
  • Last post
  • 11 Responses
  • caseyc0

    You need to check the _droptarget property of the clip being dragged, if it is the scanner thingamajig than trigger it's onRollOver method. Just remember that _droptarget is a string path and you need to use eval to match it to a movieclip instance...

    drag_mc.onMouseMove = function(){
    var drop = eval(this._droptarget);
    var drop_mc = this._parent.scanner_thingy;
    if(drop == drop_mc){
    drop_mc.onRollOver();
    } else {
    drop_mc.onRollOut();
    }
    }

View thread