Missing dragData["image"]

Alejandro Tejada capellan2000 at gmail.com
Tue Sep 16 18:09:36 EDT 2014


The missing dragData["image"] looks like a bug, 
because in 2007 it worked fine. 

Read this post by Ken Ray in this thread:
http://runtime-revolution.278305.n4.nabble.com/re-trying-to-get-image-functionality-as-in-RB-td315321.html

--------------------------------------------------
Wayne Durden asked:
Is there a way to get an image from a browser into an image on a card by
drag an drop?

Ken Ray answer:
Sure... here's a way, assuming you already have an image object on the
card and you're dropping onto it (this is the script of the image object):

on dragEnter
set the acceptDrop to true
pass dragEnter
end dragEnter

on dragDrop
if the dragData["image"] is not empty then
put the dragData["image"] into me
else
beep
end if
end dragDrop

For more info on D-n-D, see this tip:
http://www.sonsothunder.com/devres/revolution/tips/mous002.htm
------------------------------------------------



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Missing-dragData-image-tp4683313p4683314.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list