0 Replies Latest reply on Jan 28, 2010 8:27 AM by toft

    AIR 1.5.3 colorTransform problem


      When I run this code in in Flex 3 it works fine:



      private function setDigitsColor( t:Text, iHex:int ):void
      var ct:ColorTransform = t.transform.colorTransform;
      ct.color = iHex;
      t.transform.colorTransform = ct;


      (It changes the font color in a Text comp)



      When running the resulting Air program it doesnt work - the fontcolor doesnt change.


      Likewise, when running it in Flash Builder it doesnt work.


      I can get the same effect by using setStyle instead.

      But I wonder if this is a bug.


      Any idea ?