House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  Adobe Flex

Detecting if Window is already open in Air

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Graham Pearson
03/08/2009 08:50 AM

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Group: I am working on creating an update procedure for one of my Air applications. In the application if it detects a newer version, I open up a Window Component by the following code: var askToUpdateApplicationWindow:AskToPerformUpdate = new AskToPerformUpdate(); askToUpdateApplicationWindow.title = "We Are Closed Today Media Application"; askToUpdateApplicationWindow.currentApplicationVersionNumber = currentApplicationVersionNumber; askToUpdateApplicationWindow.newApplicationVersionNumber = newApplicationVersionNumber; askToUpdateApplicationWindow.ServerName = ServerName; askToUpdateApplicationWindow.newApplicationFileName = newApplicationFileName; askToUpdateApplicationWindow.open(true); Now if the end user does not click on one of the two buttons in this component, how can I go about checking to see if this window is already open on the screen. Right now if the component window is open the next time it checks to see if an update exists then I get 2 windows and I do not want that. I am wanting to bypass the update if the window is currently open. When I debug, askToUpdateApplicationWindow is always null from what I can tell. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJs9tr3GqPAgBSy90RAryCAJ9nUhov1GZOB3+HkQpDhdkGkwBWcgCgief7 2qsXF0JyS+F4RUFCkFmW0Ck= =Q6Dj -----END PGP SIGNATURE-----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Andy Matthews
03/09/2009 07:45 AM

If you're naming the window, then you should just be able to check if that "name" already exists. Something like: if (!name) {   // do something } -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Group: I am working on creating an update procedure for one of my Air applications. In the application if it detects a newer version, I open up a Window Component by the following code: var askToUpdateApplicationWindow:AskToPerformUpdate = new AskToPerformUpdate(); askToUpdateApplicationWindow.title = "We Are Closed Today Media Application"; askToUpdateApplicationWindow.currentApplicationVersionNumber = currentApplicationVersionNumber; askToUpdateApplicationWindow.newApplicationVersionNumber = newApplicationVersionNumber; askToUpdateApplicationWindow.ServerName = ServerName; askToUpdateApplicationWindow.newApplicationFileName = newApplicationFileName; askToUpdateApplicationWindow.open(true); Now if the end user does not click on one of the two buttons in this component, how can I go about checking to see if this window is already open on the screen. Right now if the component window is open the next time it checks to see if an update exists then I get 2 windows and I do not want that. I am wanting to bypass the update if the window is currently open. When I debug, askToUpdateApplicationWindow is always null from what I can tell. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJs9tr3GqPAgBSy90RAryCAJ9nUhov1GZOB3+HkQpDhdkGkwBWcgCgief7 2qsXF0JyS+F4RUFCkFmW0Ck= =Q6Dj -----END PGP SIGNATURE-----


<< Previous Thread Today's Threads Next Thread >>

Search flex

May 25, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference