Skip to main content
Inspiring
September 22, 2011
Answered

Hide white background in CellRenderer cells

  • September 22, 2011
  • 1 reply
  • 602 views

Hi

I am developing an application and making use of a list component. I have set the List to use a custom cellrenderer.

I need the list to have rounded corners but the problem is that where my custom cell corners are transparent I can see a default white cell underneath instead of the background.

I found this discussion seemed to be relevant http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/TileList-CellRenderer-has-white-background/td-p/781843

But when I add this function to my cellrenderer class I get  compiler error

override public function set data(data:Object):void{

    super.data = data;

    // Set the default skin to be invisible. This is a bit

    // easier than creating a new skin, if your goal is

    // to hide the white background.

   

    this.skin.visible = false;

}

1119: Access of possibly undefined property skin through a reference with static type MarksCellRenderer.

Can anyone tell me how to hide the defualt white cell background?

Thanks

Graeme

This topic has been closed for replies.
Correct answer Kenneth Kawamoto

If the white background is coming from the default List skin, you can physically edit List_skin MovieClip in the Component Assets in the library to make it transparent.

--

Kenneth Kawamoto

http://www.materiaprima.co.uk/

1 reply

Kenneth Kawamoto
Community Expert
Kenneth KawamotoCommunity ExpertCorrect answer
Community Expert
September 22, 2011

If the white background is coming from the default List skin, you can physically edit List_skin MovieClip in the Component Assets in the library to make it transparent.

--

Kenneth Kawamoto

http://www.materiaprima.co.uk/

Inspiring
September 22, 2011

Great, thanks for your help thats working!

Graeme