missing a basic with drag

H Baric hbaric at gmail.com
Thu Aug 14 06:20:50 EDT 2008


Isn't it as simple as this:

on mouseDown
   grab me

Works for me... is it meant to be more complicated?

(Hehe, sorry everything else has been so far, I'm a n00b too!)

*** I wasn't going to send this now I'm very happy to see that it was indeed 
correct woohooo! :D

Cheers,
Heather


----- Original Message ----- 
From: "Tiemo Hollmann TB" <toolbook at kestner.de>
To: "'How to use Revolution'" <use-revolution at lists.runrev.com>
Sent: Thursday, August 14, 2008 7:50 PM
Subject: missing a basic with drag


Hello,

I think I am missing some basic setup for providing a function with which
the user can drag around an image on the card (to position the img for
printing) What I did is:

on dragStart

    put the name of the target into gDragTarget - global

---



on dragMove

    set the loc of gDragTarget to the mouseloc

---



I get the dragStart trigger, but the image doesn't move. Do I have to set
any property of the image to be draggable? (I found this property only with
stacks, but not objects.?) What am I missing?

Thanks for any hint to a still beginner :-)

Tiemo







_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution 




More information about the use-livecode mailing list