Module: nagvis
Branch: master
Commit: 4bb96019e91421f3d2e5c2dfe658109877d5c439
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=4bb96019e91421f3d2e5c2dfe658109877d5c439

Author: Roman Kyrylych <[email protected]>
Date:   Wed Aug 19 17:15:31 2009 +0300

gmap: Open Google Maps API key signup page from Settings dialog

Signed-off-by: Roman Kyrylych <[email protected]>

---

 uifx/src/modules/gmap/view/DialogSettings.mxml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/uifx/src/modules/gmap/view/DialogSettings.mxml 
b/uifx/src/modules/gmap/view/DialogSettings.mxml
index 8133453..a5cd314 100644
--- a/uifx/src/modules/gmap/view/DialogSettings.mxml
+++ b/uifx/src/modules/gmap/view/DialogSettings.mxml
@@ -61,6 +61,11 @@
 
                                dispatchEvent(new SettingsEvent(eventType, 
_settings));
                        }
+
+                       private function onGetKey() : void
+                       {
+                               
ExternalInterface.call('window.open("http://code.google.com/apis/maps/signup.html";)');
+                       }
        ]]>
     </mx:Script>
     <mx:Metadata>
@@ -85,7 +90,7 @@
                                <mx:LinkButton label="Get Google Maps Key"
                                        left="10" right="10" top="30" 
textAlign="left"
                                        
icon="@Embed(source='modules/gmap/img/key.png')"
-                                       click="dispatchEvent(new 
Event('getGMapKey'))"
+                                       click="onGetKey()"
                                />
                        </mx:Canvas>
                        <mx:Canvas label="Default Actions" width="100%" 
height="100%" horizontalScrollPolicy="off">


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to