This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 3740
    
  10

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


[OCA 8 Book] [Blog]
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?
 
It's not a secret anymore!