View Full Version : drag images to my desktop
aneuryzma
08-27-2009, 08:09 AM
hi,
can I drag images from browser window to my desktop even if they are inside a flash animation ?
I would like to build a website in flash but keep this nice functionality you have with common html/css.
thanks
sgartner
08-27-2009, 08:37 AM
It's hard and probably impossible/unreasonable because flash doesn't have any OS-specific functionality and drag and drop is done so differently from application to application, let along OS to OS.
I did find this discussion with sample code:
http://stackoverflow.com/questions/82509/is-it-possible-to-drag-and-drop-from-to-outside-a-flash-applet-with-javascript
However, if you are creating an AIR application, it might be possible as AIR has OS-specific libraries:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/desktop/NativeDragManager.html
Here's a nice example of drag onto Flash (from HTML/JS, not OS):
http://steelcase.floorplanner.com/start
aneuryzma
08-27-2009, 10:28 AM
Isn't possible to store the image in a javascript variable and then drag out using javascript ?
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.