/t5/animate-discussions/how-to-set-alpha-to-textfield/td-p/92611Nov 21, 2008
Nov 21, 2008
Copy link to clipboard
Copied
I've created a txtField with background set to true,
backgroundColor set to a certain color, and txtField.alpha set to
10; however, the alpha does not work. The background color of
txtField appears to have a full opaque color and not transparency.
Any suggestion is appreciated.
/t5/animate-discussions/how-to-set-alpha-to-textfield/m-p/92613#M1190Nov 21, 2008
Nov 21, 2008
Copy link to clipboard
Copied
I've had issues with textfields before and alpha - never
using background colours but this may help....
I found that alpha only works with textfields if the
textfield uses embedded fonts.
import a font to you library - export for actionscript call
it myFont.
import myFont;
var myFontImport:String = new myFont().fontName;
var theFormat:TextFormat = new TextFormat();
theFormat.color = 0xFFFFFF;
theFormat.size = 14;
theFormat.font = myFontImport;