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.
02-19-2011 07:16 AM
I was trying to use the samples from the dev guides, but I see no effect from using the backgroundColor option in this code:
[SWF(height="600", width="1024", frameRate="30", backgroundColor="#BBBBBB")]
In my case the color is always White, no matter what values are set in there.
The only way I found for now is to draw another rect or picture with a color I need, but what about default OS app skinning in that case?
Any solutions for this?
Or is it an "as is" for this version of the SDK?
Solved! Go to Solution.
02-19-2011 08:20 AM
02-19-2011 09:07 AM - edited 02-19-2011 09:11 AM
Man, you're genius! And I'm a dumb...
I had it before the constructor, while I should have it before the class declaration.
Shame on me...
P.S. any way to remove the topic? Or leave it as a tip for others like me?
02-19-2011 09:10 AM
02-19-2011 09:43 AM
On a related note, I have been seeing similar issues with the new SDK(0.9.3). Let me explain...
Here's a snippet from my AS file:
Previously, I had a nice black background for my app. On the new simulator, that didn't take effect, instead had a transparent background. In my case I was using Container() class to subdivide the screen. After a little probing was able to resolve it by calling the opaqueBackground() method of the main Container...like this:
private function createObjects():void
// create main container //
myMain = new Container();
myMain.margins = Vector.<Number>([5,5,5,5]);
myMain.flow = ContainerFlow.HORIZONTAL;
myMain.opaqueBackground = 0x000000;
//myMain.debugColor = 0xFFCC00;
Still not clear why it changed in the new SDK and why the SWF macro doesnt work. Probably some silly mistake I did...will probe update my comments if I find anything else.
02-19-2011 09:46 AM
02-19-2011 10:25 AM
@tags: thats why they pay him the big bucks
02-19-2011 10:29 AM