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 <flex.gerald.a...@gmail.com>
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 <raju.amu...@gmail.com> 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 flex_in...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com>
> > .
> > 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 flex_in...@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=.


Reply via email to