You can do this easily by setting button's toggle property to true and
then changing the icon image by checking the value of button's selected
property.
See this example code:
http://www.macromedia.com/2003/mxml"; >
-Ashish
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Prasad Dhananjaya
> Sent: Sunday, September 11, 2005 9:58 PM
> To: FlexML
> Subject: [flexcoders] How to change the button's image after click
>
> Hi,
>
> I want to change the button's image(icon image) after click.
> (use this as toggle button)
> I tried several ways, but failed. Can someone tell me how to do this?
>
> thanks
>
> -
>
> http://www.macromedia.com/2003/mxml"; >
>
>
>
>
>
>
>
>
> -
>
>
> 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
>
>
>
>
>
>
>
Yahoo! Groups Sponsor ~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/