Re: [flexcoders] CSS stylesheets and Textfields

2006-11-27 Thread Daniel Freiman

I'm confused at what you are trying to do.  With the exception that the size
and color properties shouldn't be Strings, your code is fine.  What exactly
are you trying to do and how exactly is it not working?  Creating a minimal
example might help track down what isn't working.

- Dan

On 11/26/06, {reduxdj} [EMAIL PROTECTED] wrote:


  I have a stylesheet with my embedded font links that work fine, how do i

use my stylesheet with a textformatter for a new text object?

var formatter:TextFormat = new TextFormat();

formatter.bold = true;
formatter.color = 0xFF;
formatter.font = arial;
formatter.size = 32;
question.setTextFormat(formatter);

I've tried a couple different examples and the stylesheet stuff is a
little hard for me wrap my head around. I'm placing text over a
rectangle that i draw, so the text class works better for me than the
textfield class in this example.

Thanks,
Patrick

 



[flexcoders] CSS stylesheets and Textfields

2006-11-26 Thread {reduxdj}
I have a stylesheet with my embedded font links that work fine, how do i 
use my stylesheet with a textformatter for a new text object?

var formatter:TextFormat = new TextFormat();
  
formatter.bold = true;
formatter.color = 0xFF;
formatter.font = arial;
formatter.size = 32;
question.setTextFormat(formatter);

I've tried a couple different examples and the stylesheet stuff is a 
little hard for me wrap my head around.  I'm placing text over a 
rectangle that i draw, so the text class works better for me than the 
textfield class in this example.

Thanks,
Patrick