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:16 UTC

[royale-asjs] 13/29: if you get 'Error: Implicit coercion of a value of type MouseEvent to an unrelated type Event' then you need to be careful about the type of event used in event handlers

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 c942f680357264f5eb3e6caf21ffa557f3869ce8
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jul 31 19:29:45 2018 -0700

    if you get 'Error: Implicit coercion of a value of type MouseEvent to an unrelated type Event' then you need to be careful about the type of event used in event handlers
---
 examples/mxroyale/tourdeflexmodules/src/explorer.mxml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/mxroyale/tourdeflexmodules/src/explorer.mxml b/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
index dbe4459..406a270 100755
--- a/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
+++ b/examples/mxroyale/tourdeflexmodules/src/explorer.mxml
@@ -25,6 +25,7 @@
         <![CDATA[
 		import mx.core.FlexGlobals;
         import org.apache.royale.core.BrowserWindow;
+        import org.apache.royale.events.MouseEvent;
         import org.apache.royale.net.URLLoader;
         import org.apache.royale.net.URLRequest;
 
@@ -144,7 +145,7 @@
             }
         }
 			
-		private function gotoHome(event:Event):void
+		private function gotoHome(event:MouseEvent):void
 		{
 			BrowserWindow.open("http://flex.apache.org/download-tourdeflex.html");
 		}