hi,
How do i show a wait screen before entaring havy task...

  Alert.show('I want to see It first before entering loop');..should 
come first before other task but ui become hung...plz 
help...calllater also can't help


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute">
        <mx:Button x="153" y="123" label="Button" click="onclick()" />
        <mx:Script>
                <![CDATA[
                        import mx.core.UIComponentGlobals;
                        import mx.controls.Alert;
                        private function onclick(){
                           
                   Alert.show('I want to see It first before entering 
loop');
                   callLater(Dolater);
                           Alert.show('huh');
                }
                 private function Dolater(){
                            for(var i:int=0;i<9999999;i++){
                                        for(var j:int=0;j<99;j++){
                                        }
                                        if(i==9999998){
                                    Alert.show('ohhno');
                                        }
                                }
              }
                ]]>
        </mx:Script>
                
</mx:Application>


Reply via email to