In you click handling function:
function click (_evt){
if (_evt.detail == Alert.YES){
//user click the Yes button
} else {
//user clicked the No button
}
}
All the button options (ie Alert.OK, Alert.CANCEL) etc are public variables of
the Alert control that you can reference and check against the detail value of
the event fired when any button on the Alert control is clicked by the user.
Derrick Grigg
[EMAIL PROTECTED]
www.innovasium.com
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Matthew Kuehn
> Sent: Friday, August 26, 2005 3:28 PM
> To: [email protected]
> Subject: [flexcoders] Handling mx.controls.Alert.show() Yes/No Options
> (Or A Better Way To Do It)
>
> How does one determine which button the user clicked when showing an
> alert with multiple buttons? For example:
>
> mx.controls.Alert.show('Are you sure you want to do
> that?','',mx.controls.Alert.YES | mx.controls.Alert.NO,this,'','',NO);
>
> How do I determine if they clicked yes or no? Or, is there a preferred
> way to do this? I can't seem to find any good examples.
>
> Thanks,
> Matthew
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> SPONSORED LINKS
>
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Software+design+and+development&w3=Macromedia
> +flex&w4=Software+development+best+practice&c=4&s=131&.sig=FkTWphZzV9mFu
> lU7V3u7pQ>
>
> Software design and development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Software+design+and+development&w3=Macrom
> edia+flex&w4=Software+development+best+practice&c=4&s=131&.sig=w0jnvy4gy
> xC04c4dhRnw6A>
>
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Software+design+and+development&w3=Macromedia+flex&w4=Sof
> tware+development+best+practice&c=4&s=131&.sig=XXu7YeegB3Vi-5Qngf6oNQ>
>
> Software development best practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&
> w1=Web+site+design+development&w2=Software+design+and+development&w3=Mac
> romedia+flex&w4=Software+development+best+practice&c=4&s=131&.sig=ZT_U6e
> _iPgXSriY_dI9nIg>
>
>
>
>
>
>
>
> ________________________________
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .
>
>
>
> ________________________________
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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/