Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:27:39 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  ActionScript 3.0 (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  Tree Component AS3 background color ?
« previous next »
Pages: [1] Print
Author Topic: Tree Component AS3 background color ? (Read 544 times)
onthefield
Newbie FD
*
Posts: 1


« on: 10 Mar 2010, 11:50:28 UTC »

Hi I am desperate to figure out how to change the background color of a Tree component


I can change the font like below:

Code:
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.font = "Comic Sans MS";
mytree.setRendererStyle("textFormat", myTextFormat);

How can I change the background color??
« Last Edit: 10 Mar 2010, 12:22:23 UTC by flexy » Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #1 on: 10 Mar 2010, 12:23:58 UTC »

Code:
myTree.setStyle( "backgroundColor", 0xFF66600 );
Logged

Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC