
Код AS3:
public class TextGold extends MovieClip
{
public var score_text:TextField;
public function TextGold(_width:Number, _heidth:Number)
{
var format_90:TextFormat = new TextFormat;
format_90.font = 'Tahoma';
format_90.size = 90;
format_90.color = 0xEFE284;
format_90.bold = true;
format_90.align = TextFormatAlign.CENTER;
score_text = new TextField;
score_text.defaultTextFormat = format_90;
score_text.width = _width;
score_text.height = _heidth;
score_text.text = '12500';
var shape_mask:Shape = new Shape;
var shape_mask_matrix:Matrix = new Matrix();
shape_mask_matrix.createGradientBox(_width, _heidth, 90, 0, 0);
shape_mask.graphics.beginGradientFill(GradientType.LINEAR, [0xd36300, 0xfcff00], [1, 1], [0,255], shape_mask_matrix);
shape_mask.graphics.drawRect(0, 0, _width, _heidth);
shape_mask.graphics.endFill();
shape_mask.cacheAsBitmap=true;
score_text.cacheAsBitmap=true;
addChild(score_text);
addChild(shape_mask);
shape_mask.mask = score_text;
}
Еще обязательно нужно делать

Код AS3:
shape_mask.cacheAsBitmap=true;
score_text.cacheAsBitmap=true;
Так как флеш не может применить прозрачность к не растровой графике...