You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/08/02 00:44:13 UTC

[royale-asjs] 10/29: replace navigateToURL with BrowserWindow.open

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 963431d0cfabb1190a36534cd8b61cec6d4f3822
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jul 31 12:33:51 2018 -0700

    replace navigateToURL with BrowserWindow.open
---
 examples/mxroyale/tourdeflexmodules/src/explorer.mxml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/mxroyale/tourdeflexmodules/src/explorer.mxml b/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
index e9f5a6f..0cad1c7 100755
--- a/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
+++ b/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
@@ -24,6 +24,7 @@
      <fx:Script>
         <![CDATA[
 		import mx.core.FlexGlobals;
+        import org.apache.royale.core.BrowserWindow;
 
 		static protected const VERSION:String = "1.2";	
 		static protected const TITLE:String = "Tour De Flex Component Explorer";
@@ -143,8 +144,7 @@
 			
 		private function gotoHome(event:Event):void
 		{
-			var urlRequest:URLRequest = new URLRequest("http://flex.apache.org/download-tourdeflex.html");
-			navigateToURL(urlRequest);
+			BrowserWindow.open("http://flex.apache.org/download-tourdeflex.html");
 		}
 		
 		private function openNode(application:String):void