Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)
My Carrier: Rogers
Accepted Solution

Rotating Label makes it disappear?

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!

 

- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Developer
Posts: 85
Registered: ‎10-25-2010
My Device: Not Specified

Re: Rotating Label makes it disappear?

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

Hope this helps,
Fabien

--
1. If you liked my post or found it useful please click on the white star and provide a Kudo!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Rotating Label makes it disappear?

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.

Highlighted
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Rotating Label makes it disappear?

 


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.

 


PlayBook Applications:
Drop Swatch