One way to do this would be to create a NativeWindow obeject for each movieclip and position the widow in the desired location. You can use the Screen class to get information about the available monitors, do some logic/math, and then set the x and y positions of the windows.
Thank you for the help, but I'm a newbie in air apps.
Would you please send me a sample(.fla), that I can use as a reference??
You can read this tutorial: http://www.adobe.com/devnet/air/flex/quickstart/articles/launching_windows.html
The sample application itself is written in Flex, but the section on "Creating ActionScript windows" should give you some of the information you are looking for.
I also recommend that you read: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e17.html
Okay, Mr. Ward,
but I don't use Flex, and honestly after reading that I really got confused.
It's hard to understand when you don't have a sample to open at the program and follow the actionscript.
Sorry to take some of your time, and I thank you for your help.
I don't know if you understand my question...
I'm creating 3 movieclips and the windows of those 3 movieclip will be transparent(custom look and feel).
I will like that after installing the air app, movieclip "A" will be at right bottom corner of the screen(monitor), no matter the size the monitor the movieclip(custom window(tranparent)), it will positioning at the bottom left of the monitor. Another words find the bounds of the monitor.
Same happens with the second movieclip"B" going to the center, and the third going to the top right.
I was reading and testing some your air files, but their use chrome windows and they just position the content of the windows at the left, right, etc..., but not the windows itself move to the bottom of the monitor...
Thank you again, and sorry for so many questions..
Mr Ward, i found a sample of how I will like my app to work
After I download and install Desktop Keeley, the girl comes from the bottom left always, no matter what size monitor I have. I tested in 3 different monitors and works.!!!
That's what I try to acccomplish here!!
Do you have any ideia how?
If the rectangle representing a screen is (0, 0, 1024, 768) -- which is x, y, width, height -- and your window 100x100 pixels in size, then you could position the window in the bottom corner by setting:
nativeWindow.x = 0;
nativeWindow.y = 768 - 100;
In practice, you would use the Screen class to do this:
var rect:Rectangle = Screen.mainScreen.bounds;
nativeWindow.x = rect.x;
nativeWindow.y = rect.height + rect.y - window.height
is there a way that I can send you a .fla file??
I don't know..but I am not giving up.
It should be somethnig simple, but all the answer getting harder to understand.
Nobody can show me how to do it!
It's just frustating when I try to make something(and I know it's possible), but I can't get the help!!
If anybody knows, please give a help.