greg-dove opened a new issue #805: MXRoyale Application 'preinitialize' fires a 
second time after 'initialize'
URL: https://github.com/apache/royale-asjs/issues/805
 
 
   Repro in HelloWorld:
   
   > onStartupEvent:preinitialize
   > onStartupEvent:initialize
   > onStartupEvent:preinitialize
   > onStartupEvent:applicationComplete
   
   ```
   <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                      xmlns:mx="library://ns.apache.org/royale/mx"
                                   preinitialize="onStartupEvent(event)"
                                   initialize="onStartupEvent(event)"
                                   applicationComplete="onStartupEvent(event)"
                      width="600" height="400" >
        <!-- to do: layout="absolute" minWidth="955" minHeight="600" -->
        <fx:Style>
                @namespace mx "library://ns.apache.org/royale/mx";
                
                /* set position:absolute to make the (x,y) properties work */
                mx|Label {
                        position: absolute;
                }
                
        </fx:Style>
   
        <fx:Script><![CDATA[
                import org.apache.royale.events.Event;
                public function onStartupEvent(event:Event):void{
                        trace('onStartupEvent:'+event.type);
                }
                ]]>
        </fx:Script>
   
        <mx:Label text="Hello World" x="20" y="20" />
           
   </mx: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]


With regards,
Apache Git Services

Reply via email to