thanks for ur reply.. but i found  the solution like that...
private function disableImages():void{

//remove the click listener from image
myImg.alpha=0.2;
myImg.removeEventListener(MouseEvent.CLICK, btnClickHandle);
}
private function enableImages():void{

//remove the click listener from image
myImg.alpha=1;
myImg.addEventListener(MouseEvent.CLICK,btnClickHandle);
}

public function btnClickHandle(e:MouseEvent):void
{
Alert.show("enable");


On Nov 18, 12:49 pm, Mayur <[email protected]> wrote:
> Image disable - is not giving proper meaning.
> However - if you want to just show / hide image
>
> I suggest to go for -
>
> private function disable():void{
>         img.visible = false;
> img.includeinLayout = false;
>         }
>          private function enable():void{
>          img.visible = true;
> img.includeinLayout = true;
>         }
>
> because,  assigning " null "    to source of an Image is not proper
> way
> as the data will again traverse over the net ( or may be pulled out
> from cache )
>
>  ~ Enjoy Flexing :)
>
> Mayur
>
> On Nov 18, 9:50 am, Gerald Anto Fernando <[email protected]>
> wrote:
>
> > Hi,
> > assign image source again
>
> > image.source = null; for disable
> > image.source = re assign; for enable
>
> > or try this. it will work fine
>
> >   private function disable():void{
> >         img.visible = false;
> >         }
> >          private function enable():void{
> >          img.visible = true;
> >         }
>
> > <mx:Image source="images/headericon.png" id="img"/>
>
> > On Mon, Nov 16, 2009 at 2:08 PM, amutha <[email protected]> wrote:
> > > is there any possibility to disable the image in flex 3?
> > > i tried it it's not working...how can i enable the image?
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Flex India Community" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<flex_india%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/flex_india?hl=.
>
> > --
> > Thanks & Regards,
> > A  Gerald

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=.


Reply via email to