Change BorderContainer background color with AS – Flex 4

actionscript-3apache-flexcontainersflash-builderflex4

I'm trying to change the background color and or text color of a BorderContainer in flex 4 using Action Script, but have not idea how to.

The Border Container component doesn't seem to have any properties like:

idname.color = "#333333";
idname.backgroundcolor = "#333333";

How might I go about doing this?

thanks!

Best Answer

You can set styles (which are different from properties) in ActionScript like so:

idname.setStyle("backgroundColor", 0xff0000);
Related Topic