Flash Builder: Changing BorderContainer color during runtime.

I got myself in a mess trying to change the background color of the component during runtime and after different trial and error finally I figured out that it had to do with this declaration:

ActionScript:
    <s :backgroundFill>
       
       </s><s :SolidColor color="#000000" id="defaultColor"></s>
       

Once removed I was able to use

ActionScript:
    this.setStyle("backgroundColor",0x00afe1);

I don't really understand why having the backgroundFill declaration within the body of the component, it would affect the behavior to the point that I wasn't able to change the color of the object but when I find the explanation I will for sure post it here.

No comments yet.

Leave a Reply