I don't need a textfield on stage to embed.
I adjusted my Test.as:
package {
import flash.display.*;
import flash.text.*;
[Embed(source="C:\WINDOWS\Fonts\Tahoma.ttf", fontFamily="myTahoma")]
public class Test extends MovieClip {
public function Test() {
var fmt:TextFormat = new TextFormat();
fmt.font = "myTahoma";
fmt.size=16;
fmt.color=0x990000;
var tf:TextField = new TextField();
//tf.embedFonts=true; //DOES NOT WORK, MAKES TEXT
DISAPPEAR
tf.defaultTextFormat=fmt;
tf.multiline = true;
tf.width = 200;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.wordWrap = true;
tf.x = 100;
tf.y = 100;
tf.htmlText = "Text to rotated<BR>Line two.";
addChild(tf);
//tf.rotation=300; //DOES NOT WORK, THIS IS THE
PROBLEM FOR ME
}
}
}
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of David Hunter
Sent: dinsdag 6 juli 2010 12:07
To: [email protected]
Subject: RE: [Flashcoders] How to rotate dynamic textfield
off the top of my head, i don't think you can rotate dynamic text with web
fonts. i think you need to embed the fonts, otherwise the text does not
render.
> From: [email protected]
> To: [email protected]
> Subject: [Flashcoders] How to rotate dynamic textfield
> Date: Tue, 6 Jul 2010 11:50:57 +0200
> CC:
>
> Hi List,
>
> I want to rotate a dynamic textfield in Flash CS3 using AS3 in classes.
> I want to do it all in code so nothing on the stage.
> I tried different ways but it never shows.
>
> I have set up a test fla wich can be downloaded here:
>
> www.codobyte.com/textRotation.zip
>
>
> Any help is appreciated!
>
> Regards
> Cor
> [email protected]
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us
now_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com
Versie: 9.0.830 / Virusdatabase: 271.1.1/2980 - datum van uitgifte: 07/05/10
20:36:00
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders