> 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. > coName.embedFonts = true; > format.font = myFont.fontName;
You need to embed the font any time you mess with the orientation of text. It's a long standing Flash foible. > //Your recommended line to eliminate here: > // addChild(fontContainer); Okay, it seems you are missing 'addChild(target);' In your original code you are adding 'fontContainer' as a child of 'target' then adding 'coName' as a child of 'fontContainer.' But when you do 'addChild(fontContainer)' you are moving 'fontContainer' back out of 'target,' which is why it becomes visible. However, you are still applying your transform to 'target' which not only no longer has 'fontContainer' as a child (along with its child 'coName') but has not, itself, been added to the display list. Your original post said that certain vars were defined outside the function. I guess I assumed that 'addChild(target)' fell into that category. My bad. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Susan Day Sent: Wednesday, February 17, 2010 6:39 AM To: Flash Coders List Subject: Re: [Flashcoders] Matrix Transformation Problem 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2692 - Release Date: 02/16/10 13:35:00 _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

