A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [help] Drag and Drop Files From Desktop (for Web)

  1. #1
    Participant jide's Avatar
    Join Date
    May 2003
    Posts
    264

    [help] Drag and Drop Files From Desktop (for Web)

    I've seen an example from a Google search of this being done in AIR http://www.senocular.com/air/tutoria...opimageviewer/. I'm curious if I can also drag and drop stuff online, using Flex or AS3.

    My first reaction was that this could be a security issue according to Adobe, but really it isnt. Has anybody seen anything on this?
    glhf

  2. #2
    Member
    Join Date
    May 2008
    Location
    Wellington, NZ
    Posts
    35
    Some terminology issues. Flex is a framework that mixes AS3 (for scripting) with MXML (for laying out components). AIR is another framework that let you create rich internet applications for the desktop. Either Flex or Javascript can be used to design an AIR app.

    AIR apps can be produced with command line instructions, Flex Builder (Visual IDE), Flash CS3 (AIR adds on).

    Drag and drop from outside the application window is possible in AIR (desktop) not with Flex or Javascript RIAs embedded within the browser.

    The reason why it is not possible to drag and drop images from outside the browser onto a RIA within the browser is that the browser has a default behavior so that an image dragged within the browser window will replace the content of that browser page. This behavior takes precedence... your in browser app has disappeared before it gets a chance to know that an image is been dragged over it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center