hi all,
Has anyone come across this?
I have a button whose click event activates an event listener where i
have two alert boxes. The first one displays a message "hi" and the
second one displays"hello". They are written one after the other.
However the second alert message displays first. Why is this?? i am
confused??

The code is given below:

var btn:Button = new Button()
btn.addEventListener(MouseEvent.Click,handleClick)

public function handleClick(event:Event):void
{
 mx.controls.Alert.show("hi");
 mx.controls.Alert.show("hello");
}






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to