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
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 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 :)
Jokes apart!!
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.
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.
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.