I used "Arial" for the embedded font so you need to change that to
your font name. Otherwise my example is very simple and should work :)
-- 
Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 17 February 2010 16:23, Susan Day <suzieprogram...@gmail.com> wrote:
> On Wed, Feb 17, 2010 at 11:47 AM, kennethkawam...@gmail.com <
> kennethkawam...@gmail.com> wrote:
>
>> Your transformation code may be a little too funky :)
>>
>> I (drastically) simplified your code and it works fine:
>>
>> private function companyName():void {
>>    var coName:TextField = new TextField();
>>    with(coName){
>>      x = 100;
>>      y = 100;
>>      autoSize = TextFieldAutoSize.LEFT;
>>      embedFonts = true;
>>      defaultTextFormat = new TextFormat("Arial", 40, 0);
>>      text = "Company Name";
>>      filters = [new DropShadowFilter(10, 0, 0, 0.5, 10, 10)];
>>   }
>>   addChild(coName);
>>
>>   //transform
>>    var degX:Number = 15;
>>   var degY:Number = 15;
>>    var m:Matrix = new Matrix();
>>    m.b = Math.tan(degY*Math.PI/180);
>>    m.c = Math.tan(degX*Math.PI/180);
>>   coName.transform.matrix = m;
>> }
>>
>
> Kenneth, this didn't work for me. However, Cor's recommendation he just
> emailed me did. Nonetheless, I'm curious about your simplification because
> I'd like to get that simplified code working. Here's what I built that
> didn't work. I think you can safely disregard all the extra import
> statements. I've stripped down my code considerably to the necessary only:
>
> package
> {
> import flash.geom.Transform;
> import flash.filters.DropShadowFilter;
> import flash.text.TextField;
> import flash.text.TextFormat;
> import flash.text.TextFormatAlign;
> import flash.text.TextFieldAutoSize;
> import flash.geom.Matrix;
> import flash.events.IOErrorEvent;
> import flash.filters.GlowFilter;
> import flash.display.Sprite;
> import flash.events.Event;
> import flash.events.ProgressEvent;
> import flash.events.Event;
> import flash.events.MouseEvent;
> import flash.display.MovieClip;
> import flash.display.Loader;
> import flash.display.LoaderInfo;
> import flash.display.DisplayObject;
> import flash.net.URLRequest;
> import flash.display.Shape;
> import flash.geom.*;
> import flash.display.Bitmap;
> import flash.display.BitmapData;
> import flash.filters.GlowFilter;
> import flash.filters.BitmapFilterQuality;
> import flash.geom.Rectangle;
> import com.greensock.*;
> import com.greensock.easing.*;
> import flash.text.Font;
>  public class DesertSands extends MovieClip
> {
>  public function DesertSands():void
> {
> var coName:TextField = new TextField();
> with(coName){
> x = 100;
> y = 100;
> autoSize = TextFieldAutoSize.LEFT;
> embedFonts = true;
> defaultTextFormat = new TextFormat("Arial", 40, 0);
> text = "Company Name";
> filters = [new DropShadowFilter(10, 0, 0, 0.5, 10, 10)];
> }
> addChild(coName);
>
> /*
> var degX:Number = 15;
> var degY:Number = 15;
> var m:Matrix = new Matrix();
> m.b = Math.tan(degY*Math.PI/180);
> m.c = Math.tan(degX*Math.PI/180);
> coName.transform.matrix = m;
> */
> }
> }
> }
>
> TIA,
> Susan

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to