Skip navigation
TrinityPlanet
Currently Being Moderated

Air -  Drag out  to the system

Feb 6, 2009 9:50 AM

Can I drag a Canvas or a custom component out of the Air app to the OS and make it a separate window..
Like the way browser tab if dragged spawns a new window.
If any solution to this please share

Regards
  • Currently Being Moderated
    Community Member
    Feb 6, 2009 3:54 PM
    You could listen for the nativeDragComplete event dispatched by your drag initiator object and create a new window as a response. Then move the component to the new window.
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Feb 11, 2009 8:32 PM
    I noticed that you don't get the event in Flex, but do get the complete event in an ActionScript application -- I'm not sure why. In either case, though, you don't get a valid drop cursor, so this would probably confuse users.

    You might look at the tear-off tab example on Ethan Malasky's blog to see something similar to what you are attempting.
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Feb 20, 2009 12:10 PM
    Everything should be constructed, added, and available by the windowComplete event. The creationComplete event might be too early for the main application window (but looks like it should work for Window components).
    |
    Mark as:
  • Currently Being Moderated
    Adobe Employee
    Feb 21, 2009 12:08 AM
    AIR beta version doesn't work anymore. It has expired.

    -ted
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Feb 24, 2009 5:28 PM
    You'll have to update Ethan's sample instead of trying to run it with the expired Beta. It might just be a matter of changing the application descriptor.
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jun 22, 2010 9:28 AM

    The source and example AIR aren't available on Ethan's blog anymore. Can you post the source here if you still have it? Thanks.

    |
    Mark as:
  • Currently Being Moderated
    Jun 22, 2010 5:41 PM

    I dug it out of deep freeze and updated it.  Grab it here: http://blogs.adobe.com/emalasky/TabSample.fxp

     

    cheers,

    -Ethan

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jun 22, 2010 7:50 PM

    perfect! Thanks Ethan!

     

    Rob

    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points