Re: [flexcoders] X and Y position of AIR app...

2007-10-06 Thread Scott Prentice
OK .. it's working now.

The get works fine with ..

stage.nativeWindow.x   .. OR ..   nativeWindow.x  .. (that's with a 
lowercase stage)

But the set *only* works with ..

nativeWindow.x

This may be obvious to a more experienced Flex coder, but wasn't to me.  :)

Cheers,

...scott



Scott Prentice wrote:
 Hi Sunil...

 I've added a ..

 import flash.display.Stage;

 And when I try to use ..

 Stage.nativeWindow.x  (or .y)

 I get the error ..

 Access of possibly undefined property nativeWindow through a 
 reference with static type Class.

 Any ideas?

 ...scott



 Sunil Bannur wrote:
   
 Stage.nativeWindow has x and y, it does not show in FlexBuilder as 
 part of code hinting. You can modify them by setting your own values.

  

 Thanks

 -Sunil

  

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Scott Prentice
 *Sent:* Thursday, October 04, 2007 3:51 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] X and Y position of AIR app...

  

 Hi...

 This is probably a very simple question, but I'm just not finding the
 answer. I've got a Flex-based AIR app, and I want to be able to set its
 size and location on startup to where it was when the app was last
 closed. I've got the code working to set the window size (height/width),
 but I'm not seeing how to get/set the x/y position of the application
 window.

 Any ideas?

 Thanks,

 ...scott


 


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 Yahoo! Groups Links






   


RE: [flexcoders] X and Y position of AIR app...

2007-10-04 Thread Sunil Bannur
Stage.nativeWindow has x and y, it does not show in FlexBuilder as part
of code hinting. You can modify them by setting your own values.

 

Thanks

-Sunil

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Prentice
Sent: Thursday, October 04, 2007 3:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] X and Y position of AIR app...

 

Hi...

This is probably a very simple question, but I'm just not finding the 
answer. I've got a Flex-based AIR app, and I want to be able to set its 
size and location on startup to where it was when the app was last 
closed. I've got the code working to set the window size (height/width),

but I'm not seeing how to get/set the x/y position of the application 
window.

Any ideas?

Thanks,

...scott

 



Re: [flexcoders] X and Y position of AIR app...

2007-10-04 Thread Scott Prentice
Hi Sunil...

I've added a ..

import flash.display.Stage;

And when I try to use ..

Stage.nativeWindow.x  (or .y)

I get the error ..

Access of possibly undefined property nativeWindow through a 
reference with static type Class.

Any ideas?

...scott



Sunil Bannur wrote:

 Stage.nativeWindow has x and y, it does not show in FlexBuilder as 
 part of code hinting. You can modify them by setting your own values.

  

 Thanks

 -Sunil

  

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Scott Prentice
 *Sent:* Thursday, October 04, 2007 3:51 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] X and Y position of AIR app...

  

 Hi...

 This is probably a very simple question, but I'm just not finding the
 answer. I've got a Flex-based AIR app, and I want to be able to set its
 size and location on startup to where it was when the app was last
 closed. I've got the code working to set the window size (height/width),
 but I'm not seeing how to get/set the x/y position of the application
 window.

 Any ideas?

 Thanks,

 ...scott