02-08-2011 03:38 AM
I'm trying to add a label to my app on an angle (or even sideways) but when I put in the following code the label disappears:
var label:Label = new Label();
label.text = "label";
label.setPosition(100,20);
label.rotation = -45;
label.format = new TextFormat("bbarial", 18 , 0xffffff);
this.addChild(label);
If I take out the rotation it adds the label fine. But once I put the label.rotation code in it disappears.
Any suggestions?
Thanks!
Solved! Go to Solution.
02-08-2011 05:54 AM
Hi,
it's a classic FP "issue" (not really an issue as it is in the docs). You have to embed the font to be able to rotate / apply alpha to a text. You can find multiple example on how to embed fonts online
02-08-2011 08:34 AM
Applying alpha is a simulator issue. Changing font alpha works fine as an AIR application. It is a submitted BB "issue". There is a thread for a work around on the font alpha with blending it with a Sprite.
02-08-2011 11:12 AM
fnicollet wrote:
Hi,
it's a classic FP "issue" (not really an issue as it is in the docs). You have to embed the font to be able to rotate / apply alpha to a text. You can find multiple example on how to embed fonts online
interesting! i had no idea about this. good to know.