You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/11/29 09:00:12 UTC

[GitHub] [royale-asjs] yishayw opened a new issue #959: mx.event.ModuleEvent not bubbling up

yishayw opened a new issue #959:
URL: https://github.com/apache/royale-asjs/issues/959


   In the following app, trace log shows 'regular event captured', but not 'module event captured'.
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <s:Application 
   	xmlns:fx="http://ns.adobe.com/mxml/2009"
   	xmlns:s="library://ns.apache.org/royale/spark"
   	creationComplete="init()"
   	>
   	<fx:Script>
   		<![CDATA[
   			import mx.events.ModuleEvent;
   			import org.apache.royale.events.Event;
   
   			private function init():void
   			{
   				var moduleEvent:ModuleEvent = new ModuleEvent("moduleEvent");
   				var regularEvent:Event = new Event("regularEvent", true);
   				container.addEventListener("moduleEvent", onModuleEvent);
   				container.addEventListener("regularEvent", onRegularEvent);
   				content.dispatchEvent(moduleEvent);
   				content.dispatchEvent(regularEvent);
   			}
   
   			private function onModuleEvent(event:ModuleEvent):void
   			{
   				trace('module event captured');
   			}
   
   			private function onRegularEvent(event:Event):void
   			{
   				trace('regular event captured');
   			}
   		]]>
   	</fx:Script>		
   	<s:Group id="container">
   		<s:Group id="content"/>
   	</s:Group>
   </s:Application>
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] aharui closed issue #959: mx.event.ModuleEvent not bubbling up

Posted by GitBox <gi...@apache.org>.
aharui closed issue #959:
URL: https://github.com/apache/royale-asjs/issues/959


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #959: mx.event.ModuleEvent not bubbling up

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #959:
URL: https://github.com/apache/royale-asjs/issues/959#issuecomment-735366456


   Problem might be that ProgressEvent doesn't pass on the bubbles param. Thanks, @greg-dove.
   
   ```
   public function ProgressEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
                            current:Number = NaN, total:Number = NaN)
   {
         super(total);
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] yishayw commented on issue #959: mx.event.ModuleEvent not bubbling up

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #959:
URL: https://github.com/apache/royale-asjs/issues/959#issuecomment-735372591


   > Problem might be that ProgressEvent doesn't pass on the bubbles param. Thanks, @greg-dove.
   > 
   > ```
   > public function ProgressEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, 
   >                          current:Number = NaN, total:Number = NaN)
   > {
   >       super(total);
   > }
   > ```
   
   Unfortunately that did not fix it


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org