02-19-2011 07:16 AM
Hello,
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:25 AM
You are absolutely right.
In any case, I really appreciate your help!
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;
addChild(myMain);
...
...
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
In blackberry-tablet.xml, do you have transparent set to true?
<qnx>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
...
</qnx>
02-19-2011 10:13 AM
There you go...you are a genius, jtegen..
Indeed I have it set to true ![]()
02-19-2011 10:25 AM
@tags: thats why they pay him the big bucks ![]()
02-19-2011 10:29 AM
I must say you guys must be so passionate about BB to support this forum on weekends too..esp posting a reply before 9am on a Saturday... :-p