I tried the two edits you recommended but without satisfactory result.
Here's the new code:
function companyName():void
{
var coName:TextField = new TextField();
coName.text = 'Company Name';
coName.textColor = 0xFFFFFF;
coName.autoSize = TextFieldAutoSize.LEFT;
coName.x = 550;
coName.y = 55;
// Your new line here:
coName.embedFonts = true;
var format:TextFormat = new TextFormat();
format.font = myFont.fontName;
format.size = 40;
coName.setTextFormat(format);
var dropShadow:DropShadowFilter = new DropShadowFilter();
dropShadow.color = 0x000000;
dropShadow.blurX = 10;
dropShadow.blurY = 10;
dropShadow.angle = 0;
dropShadow.alpha = 0.5;
dropShadow.distance = 10;
var filtersArray:Array = new Array(dropShadow);
coName.filters = filtersArray;
target.addChild(fontContainer);
fontContainer.addChild(coName);
//Your recommended line to eliminate here:
// addChild(fontContainer);
var degX:Number = 15;
var degY:Number = 15;
var m:Matrix = transform.matrix;
m.b = Math.tan(degY *(Math.PI/180));
m.c = Math.tan(degX *(Math.PI/180));
var t:Transform = new Transform(target);
t.matrix = m;
target.transform = t;
TweenLite.to(target, 1, {x:-300});
}
The problem with eliminating the aforementioned line is that the text is
then not added to the screen at all. The addition of the other line made no
noticeable difference. Please advise.
TIA,
Susan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders