flash - Could I have some clearance on why one of my methods are being called ran first when I call it second? -


when run program "showapplication" method runs first. little confused why "showapplication" method runs before "complete" method? why happening?

<?xml version="1.0" encoding="utf-8"?> <s:application xmlns:fx="http://ns.adobe.com/mxml/2009"                 xmlns:s="library://ns.adobe.com/flex/spark"                 xmlns:mx="library://ns.adobe.com/flex/mx" minwidth="955" minheight="600">      <s:applicationcomplete>         <![cdata[             complete();             showapplication();         ]]>     </s:applicationcomplete>      <fx:script>         <![cdata[             import mx.controls.alert;              private function complete(): void {                 alert.show("wewt");             }              private function showapplication(): void {                 alert.show("showing components");             }         ]]>     </fx:script>      <fx:declarations>         <!-- place non-visual elements (e.g., services, value objects) here -->     </fx:declarations>  </s:application> 

the alert component not block execution of actionscript code. in other words, after first alert shown, code keeps running, if haven't clicked ok yet. first alert there, hidden under second alert because alerts display on top of other existing content.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -