How to change drag to click
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
How to change drag to click
hi…I have read and got the sample of drag and drop images. However, I want to change drag to click. Someone could solve this problem ? THx
- Attachments
-
- imageDragDrop_Re-Revised.zip
- (120.61 KiB) Downloaded 165 times
Re: How to change drag to click
Hi.
This is a much simpler task. Make a copy of the "imageDragDrop" stack. In that copy, comment out the entire card script. You do not want any of those handlers to interfere with what you are going to do. In the script of one of the images,write:
on mouseup
set the rect of me to the rect of fld "dragYourImagehere"
end mouseup
This should get you started.
Now you will have to manage restoring whatever image might already be in that field area back to its original place This is so that you can click on whatever image you want and if there is one already there, it pops back down and the new one takes its place. You will likely need a few custom properties to be set. Can you do that?
Craig Newman
This is a much simpler task. Make a copy of the "imageDragDrop" stack. In that copy, comment out the entire card script. You do not want any of those handlers to interfere with what you are going to do. In the script of one of the images,write:
on mouseup
set the rect of me to the rect of fld "dragYourImagehere"
end mouseup
This should get you started.
Now you will have to manage restoring whatever image might already be in that field area back to its original place This is so that you can click on whatever image you want and if there is one already there, it pops back down and the new one takes its place. You will likely need a few custom properties to be set. Can you do that?
Craig Newman
Re: How to change drag to click
Sorry I didn't understand which the words are needed to delete. Is there any sample for me to watch???