are you looking to dock and not move window? If so, I have yet to find a way to stop window move in AIR using native system chrome. You can, on the other hand, create your own close/minimize/maximize buttons to replicate the chrome. Doing so will keep your window from being moveable - as long as you don't use <mx:TitleWindow> . In the application descriptor file, or in the ActionScript, you can set the x,y values of the initial window. Just beware that Windows x,y are not the same as OSX x,y. Also if your users have multiple screens (or even if they only "might") see: http://help.adobe.com/en_US/AIR/1.5/devappsflex/WS5b3ccc516d4fbf351e63e3d118666ade46-7dec. html
Use nativeWindow.minimize(); inside a MouseEvent function to minimize window by OS native minimize effect.
Yeah, I'm looking to have it dock at the side of the screen, full height and reserving that part of the screen. Eg it's always on top and other apps are resized as if the desktop just got smaller.
There are a bunch of apps that do this on Windows. Mainly IM apps like Digsby.
you can set alwaysInFront to true in your initial function. But it will just sit on top and not "dock." I haven't seen "docking" done with an AIR app yet, or tried to do it myself, so i don't know if it is possible or not.
That's a pretty serious limitation if it can't be done. Kind of ironic, since the most popular Air apps that I'm aware of actually *are* IM apps (eg Tweetdeck, Twirl).
It's a pity. I can most probably do without docking capability by simply hiding/showing an always-on-top column for the workflow/job queue that is controlled by the task icon.. Would be nice to have the option of docking though. Users will almost certainly ask for this.
The idea is that it will dock on teh edge of the screen in a similar way to an IM app
What exactly do you mean by that?
With AIR you definitely have enough control over your window to create an app that is glued to the monitor edge. You can make it show/hide based on mouse position and/or trigger it from systray or taskbar/dock. You can make it allways be on top of other open windows, you can display notifications and a whole range of other nifty things.
The one thing that I do not believe you can do, is grab a slice of the users desktop and push all other apps over. Personally, I don't like that idea at all, but those are your spec's, then I don't think AIR is the right path. However, if you have some freedom to interpret what it means to dock an app, then you have a lot of freedom to do that in AIR.
Not sure that helped much, but I hope so.
Unfortunately, there are still some limitations to AIR. Opening a file with its native application is one example, "docking" (or specified screen consumption) may very well be another.Skinnyfish has a good point about auto-hiding based on mouse position, although I think we have established the posibilities of the rest of what they may be saying.
There is an example of snapping windows to the edge of screens in the Adobe Air programming unleashed book.
Might be what you are after
Azaram did you find the solution to your problem? I have the exact same issue...