04-12-2011 01:59 PM
I've been trying to figure out how to make the Background Transparent on Flash CS5 AIR Application for BlackBerry Tablet Simulator and I think it has to do with my *-app.xml file. I've seen another forum mention adding the <transparent> tag and setting that to "true". I placed this inside my <initialWindow> tags and my .bar file still wouldn't compile using the command line packaging. As soon as I remove the <transparent> tag, I can compile the .bar file and view it in the Tablet Simulator. Does anyone have any advice?
Solved! Go to Solution.
04-12-2011 02:07 PM
You need to set the <transparent>true</transparent> in your blackberry-tablet.xml file, not your -app.xml file.
04-12-2011 02:10 PM
Sorry, just saw it was your first post. Welcom to the forums! Here is the layout of your blackberry-tablet.xml file. It's documented, but not in the easiest of places to find:
<qnx> <initialWindow> <systemChrome>none</systemChrome> <transparent>true</transparent> </initialWindow> <publisher>Sample Inc.</publisher> <category>core.internet</category> <icon> <image>your_image.png</image> </icon> <splaschreen>splashscreen.png</splashscreen> </qnx>
Also, if you app uses anything that requires permissions (internet, sharedObject) you need to add
before you close the qnx tags.
04-12-2011 03:35 PM
Thanks for the reply guys...So my command line for packaging:
bin\blackberry-airpackager -package DailyHealthTip.bar -installApp -launchApp DailyHealthTip-app.xml DailyHealthTip.swf blackberry-tablet-icon.png -device 192.168.242.129 -password XXXXXXXX
Where would I specify the blackberry-tablet.xml in my command line?
04-12-2011 03:49 PM
after your swf and before your icon.
04-12-2011 07:38 PM
04-12-2011 08:10 PM
Thanks. Sorry for a basic question, but under what circumstances would you want to do this? Would this be, for example, if the "area" on the screen that your app uses is smaller than 1024x600 but you nevertheless put a box of full screen size and then make it partially transparent?
Thanks in advance for clarifying. Just trying to figure out a different look for my app and hence want to think through all the different options.
04-12-2011 09:24 PM
04-12-2011 10:08 PM