3 Replies Latest reply on Jan 14, 2008 7:20 AM by Smoke007

    MXML Component & CSS

    Smoke007
      Hi forum,

      I develop this simple MXML component:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx=" http://www.adobe.com/2006/mxml" width="368">
      <mx:Script>
      <![CDATA[
      import mx.containers.GridItem;

      public function get text():String
      {
      return lblText.text;
      }

      public function set text(value:String):void
      {
      m_text = value;
      }

      private var m_text:String = "Text";

      public var LineColor:uint = 0;
      ]]>
      </mx:Script>

      <mx:Label y="10" text="{m_text}" left="5" right="10" id="lblText" fontWeight="bold" color="#0000ff"/>

      <mx:HRule left="5" right="5" y="28" height="3" strokeColor="{LineColor}"/>
      </mx:Canvas>

      Now I need to add possibility to change "LineColor" property from CSS: how can I do it?

      Thanks in advance for your help.

      Smoke007