Susan,
Try this in a fresh fla. Be sure to import Arial Black font into the library
and give it a classname of 'ArialBlack.'
If there is still a problem, please be specific.
DesertSands.as (document class)
package {
import flash.display.MovieClip;
import flash.filters.DropShadowFilter;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import flash.text.Font;
import flash.geom.Matrix;
public class DesertSands extends MovieClip {
private var coName:TextField = new TextField();
private var coNameParent:MovieClip = new MovieClip();
private var arialBlack:Font = new ArialBlack();
public function DesertSands():void {
// Set textfield properties
coName.autoSize = TextFieldAutoSize.LEFT;
coName.embedFonts = true;
coName.defaultTextFormat = new
TextFormat(arialBlack.fontName, 40, 0xFFFFFF);
coName.text = "Desert Sands Industrial";
coName.filters = [new DropShadowFilter(10, 0, 0,
0.5, 10, 10)];
// Apply the transformation
coName.transform.matrix = applyTransformation(15,
15);
// Use coNameParent for positioning
coNameParent.x = 10;
coNameParent.y = 100;
// Add assets to the display list
coNameParent.addChild(coName);
addChild(coNameParent);
}
private function applyTransformation(x:Number,
y:Number):Matrix {
var m:Matrix = new Matrix();
m.b = Math.tan(x * Math.PI / 180);
m.c = Math.tan(y * Math.PI / 180);
return m;
}
}
}
Regards,
Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders