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,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon
Accepted Solution

App not using fullscreen

I'm in the process of "future proofing" my app before I start adding more features to it. I remember at some point, I believe a Webcast, RIM saying to make the app UI work off of the screen width and height instead of hard-coding positions because there could/would be other sized PlayBooks in the future.

 

So in that effort I started playing around, but noticed that my UI elements were starting at a position that wasn't the upper-left of the screen. After doing some investigation I realized that the "stage" was only 500 by 375, a 4x3 resolution and the PlayBook was centering this in the middle of the screen (the odd UI element offset).

 

At the top of the initial app class your supposed to specify a "[SWF(...)]" attribute. The only part I don't specify is the screen size. When this is set then the stage takes the specified screen size.

 

Finally, the app still takes up the whole screen but the UI is specified that it only takes up the relatively small area. The stage has fields specifying the "fullscreen" width and height, and also specifies the display state as "normal" instead of "fullscreen".

 

Does anyone know how to get the app to take up the full screen real estate, without specifying the absolute screen size in the SWF attribute?

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: App not using fullscreen

this should work:

 

 

//Class
[SWF (backgroundColor = "0x000000")]
public class FullScreenTest extends Sprite
     {
     //Constructor
     public function FullScreenTest()
          {
	  stage.scaleMode = StageScaleMode.NO_SCALE;
	  stage.align = StageAlign.TOP_LEFT;
	  stage.frameRate = 60;

	  init();
	  }

 

 


PlayBook Applications:
Drop Swatch
Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: App not using fullscreen

Perfect, thank you.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.