The UITextFields that are used in Flex Text components have some
rendering issues that the basic ActionScript TextFields don't have.

I want to use TextField, and set its style based on a style that's
available in the StyleManager, but can't make the connection.

This is what I did, it works in my test app, but not in my production
app, because the factory is null (I'm loading the CSS swf at runtime). 

Is there another way to achieve this:
var css:CSSStyleDeclaration =
StyleManager.getStyleDeclaration(".myTextField");
var f:Function = css.factory;
var styleObj:Object = new f();
var s:StyleSheet = new StyleSheet();
var fmt:TextFormat = s.transform(styleObj);
var tf:TextField = new TextField();
tf.defaultTextFormat = fmt;

I'm hoping there's a simple way to do this that I'm just overlooking. 

Oh, and the UITextFields have a slight transparent box around them
when using embedded fonts. If anyone knows how to fix that, I'd
definitely prefer that solution.

Reply via email to