aspose file tools*
The moose likes Flex and the fly likes How to make an image visible and invisible on click in itemrender? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "How to make an image visible and invisible on click in itemrender?" Watch "How to make an image visible and invisible on click in itemrender?" New topic
Author

How to make an image visible and invisible on click in itemrender?

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
I have an itemrenderer which is inside an MDataGrid. Now when user logs in for the first time there will be a "new" image on all the columns. When user clicks/ double clicks any column, the image should get removed from that particular column. I am not able to achieve this. I tried invalidateDisplayList, invalidateList, nothing is working.Please help.


Thanks in advance,
Aman


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3710
    
    5

Have you tried invalidateProperties? I suggest posting some code so we can understand exactly what you are trying to do.


My Blog: Down Home Country Coding with Scott Selikoff
Ruchira Ghosh
Greenhorn

Joined: Nov 25, 2010
Posts: 13
Try using addChild and removeChild methods of mx.Core.UIComponent.

removeChild(DisplayObject(linkButton: LinkButton)
addChildDisplayObject(linkButton: LinkButton)


Thanks & Regards,
Ruchira

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make an image visible and invisible on click in itemrender?