Hello All,

I have doing a small experiment with flex 3 and found something every 
strange.  In a function i am calling Alert.show() 3 Times 1,2,3 but 
when i call that function the execution of starts from the bottom 
calling the message box 3 first and message 1 the last. 

Have anyone got an idea why its happening ?



Here the code 

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="vertical" backgroundGradientAlphas="[1.0, 1.0]" 
backgroundGradientColors="[#8E8E8E, #DEDEDE]">
<mx:Script>
        <![CDATA[
                import mx.controls.Alert;
                private function callAlerts():void
                {
                        Alert.show("Hello World","Message 1");
                        Alert.show("Hello World","Message 2");
                        Alert.show("Hello World","Message 3");
                }
        ]]>
</mx:Script>
        <mx:Label text="Test Alert"/>
        <mx:Button click="callAlerts()" label="Call Alert Box"/>
</mx:Application>


Regards 


Gaurav





Reply via email to