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