0 Replies Latest reply on Mar 30, 2007 3:27 PM by Queenalley

    Applying filters to text in Flex

    Queenalley
      I'm trying to make some text nice and pretty with a dropped shadow, etc. The text in Flexbuilder 2 displays nice and antialiased, but with no dropped shadow. When running, the dropped shadow is pretty and antialiased, but the text itself is not. If I make some text and style it in Flash and export it as a SWF it works fine. That's just a lot of steps to go through to get nice headlines...

      I'm on a PC running XP with flash player 9,0,28,0 installed. Here's the code.
      __________________________________________________________

      <mx:Label text="With Drop Shadow" x="26" y="223" width="80" fontFamily="Arial" fontSize="16" color="#ffff80" fontWeight="bold">
      <mx:filters>
      <flash.filters:DropShadowFilter xmlns:flash.filters="flash.filters.*" />
      </mx:filters>
      </mx:Label>
      <mx:Label text="No Filter" x="26" y="253" width="80" fontFamily="Arial" fontSize="16" color="#ffff80" fontWeight="bold">
      </mx:Label>
      <!-- This is the swf I made of text with dropped shadow and bevel effect to check rendering -->
      <mx:SWFLoader x="150" y="186" source="assets/text.swf" autoLoad="true"/>
      __________________________________________________________

      Do I need to do something special to force it to antialias or is this bug/limitation of the flash player or flex?

      Thanks!