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:
[email protected]


Reply via email to