[flexcoders] regarding eventListener with Alert control
?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* backgroundColor=#FF alpha= 10 height=300 width=300 mx:Script ![CDATA[ import mx.controls.Alert; import mx.events.AlertClickEvent function click(evt:AlertClickEvent) { if(evt.detail == Alert.OK) { txt2.text = txt1.text; } Alert.show(Click the right Button, Alert Box, Alert.OK | Alert.CANCEL | Alert.NO | Alert.YES); } ]] /mx:Script mx:TextInput id=txt1 width=100 / mx:TextInput id=txt2 width=200 / mx:Button id=m_btn label=CLICK click=click(evt:AlertClickEvent) / /mx:Application Above is my code.. I want to use Alert button with Event listener that only event executed only after clicking YES button in Alert dialog box. But it gives error that EXPECTING RIGHTPAREN BEFORE COLON. I have highlighted both events with bold UnderlinedNo idea how to solve that Any suggestion will be appreciate.. -- jignesh dodiya -- 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 Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] regarding eventListener with Alert control
On 11/15/05, Jignesh Dodiya [EMAIL PROTECTED] wrote: mx:Button id=m_btn label=CLICK click=click(evt:AlertClickEvent) / Above is my code.. But it gives error that EXPECTING RIGHTPAREN BEFORE COLON. click=click(event) Then you're get another error about having the wrong type, but I guess you know how to deal with that. Manish Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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/