Skip navigation
Currently Being Moderated

Air -  Drag out  to the system

Feb 6, 2009 8: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
 
Replies
  • Currently Being Moderated
    Feb 6, 2009 2:54 PM   in reply to TrinityPlanet
    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
    Feb 11, 2009 7:32 PM   in reply to TrinityPlanet
    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
    Feb 20, 2009 11:10 AM   in reply to TrinityPlanet
    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
    Feb 20, 2009 11:08 PM   in reply to TrinityPlanet
    AIR beta version doesn't work anymore. It has expired.

    -ted
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 24, 2009 4:28 PM   in reply to TrinityPlanet
    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
    Jun 22, 2010 8:28 AM   in reply to Joe ... Ward

    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 4:41 PM   in reply to xbrotherx

    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
    Jun 22, 2010 6:50 PM   in reply to Ethan_Malasky

    perfect! Thanks Ethan!

     

    Rob

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points