This content has been marked as final. Show 12 replies
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.
I all try that out.
I tried capturing the event nativedragComplete, But when I drag out of the air Application the OS desktop doesnot accept drag. How do I add accept drop to os?
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.
Hey Joe this is of great help, DragOutTabBar great!!
Hmm Let me try mouse up and mouse out event, never thought about them :)
Your article about validating signature of resource is incredible!!
By the way I have got my drag between Air apps working. All and all if dragging out to OS works Its going to a big celebration this side :)
I ran into a different problem - I add event listener to the window titlebar on creationcomplete or window complete event. It gives me a null property exception. I could not understand why the window titlebar is not accessible. I need to capture the mouseDown event and drag the window and on click a different behaviour.
Doesnot seem to work fo rme
This is a new question should I start new thread. I am not sure.
Thanks again for the help..
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).
No It doesn't work with titlebar. It throws null property exception all the time in AIR.
I wish it would work for windowcomplete event.
Any thoughts please let me know.+
Also I tried using your tear tab sample application.
To do this I had install Air beta version, installing it too doesn't run the app. I am not sure If there is anything I am going wrong with.
AIR beta version doesn't work anymore. It has expired.
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.
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.
perfect! Thanks Ethan!