title: How do I change the color of a label with a button? Flash Builder 4.6
body: <p>This is an example of the code I have.
  When the mobile application opens, you can type your desired colour (E.g. #811fb4 for a purple-ish colour), and when you click the button it should change the label colour. 
  However lbl1.color does not work. Any ideas?</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" title="Custom Colour"&gt;
  
  &lt;fx:Script&gt;
      &lt;![CDATA[
          public var customColourChosen:String;
  
          protected function button1_clickHandler(event:MouseEvent):void{
              customColourChosen = txtInput1.text;
              lbl1.color = customColourChosen; // &lt;------ //
          }
  
      ]]&gt;
  &lt;/fx:Script&gt;
  
  &lt;s:Label id="lbl1" x="144" y="104" fontSize="36" text="Label"/&gt;
  &lt;s:TextInput id="txtInput1" x="50" y="138"/&gt;
  &lt;s:Button x="124" y="212" label="Button" click="button1_clickHandler(event)"/&gt;
  &lt;/s:View&gt;
  </code></pre>