|
Hi, I would like to know how to disable an image control through action script. I did some testing but could not succeeded. Here is the code I was testing. Any help appreciated and thanks in advance. Even though enabled=”false” I am able to click on the image and able to see the Alert.
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Canvas width="550" height="400"> <mx:Image source="@Embed('assets/icons/rolling.gif')" width="24" height="22" mouseDown="showMsg()" enabled="false" /> </mx:Canvas> <mx:Script> <![CDATA[ function showMsg() { mx.controls.Alert.show("clicked","Image"); } ]]> </mx:Script> </mx:Application>
Thanks!
-- 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
YAHOO! GROUPS LINKS
|
- [flexcoders] disable image Doodi, Hari - BLS CTR
- Re: [flexcoders] disable image Manish Jethani

