Hi. Because the "target" is always the card. Think about this instead:
on mouseMove if the target contains "button" then --same as "the target <> me" in this case grab the target end if end mouseMove Now when you click on the button, the target changes from its initial value (a card reference) to a button reference, and that will invoke "drag". It isn't so much, in other words, that you click the mouse, it is that the target changes when you do. The way you wrote the handler, you have to click to enable drag. Craig -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Drag-command-does-this-seem-right-tp4711132p4711136.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode