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

Reply
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A
Accepted Solution

Splash Screen Stretched

[ Edited ]

here is my test splash screen, sized at 1024 x 600 @ 72 PPI, screenshot from Photoshop CS5.

 

Screen shot 2011-03-29 at 1.22.20 PM.png

 

here is my blackberry-tablet.xml file

 

 

<qnx>
    <publisher>MYNAME</publisher>
    <category>core.media</category>
    <splashscreen>TestSplashScreen.jpg</splashscreen>
    <icon>
        <image>TestIcon.png</image>
    </icon>
</qnx>

here is my app-xml file

 

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
    <id>com.test.whatever</id>
    <versionNumber>1.0.0</versionNumber>
    <filename>Test</filename>
    <description>Test</description>
    <name>Test</name>
    <copyright>2011</copyright>
    <initialWindow>
        <content>Test.swf</content>
        <autoOrients>false</autoOrients>
        <aspectRatio>landscape</aspectRatio>
    </initialWindow>
</application>

 

 

here is my application metadata tag:

[SWF(width="1024", height="600", frameRate="60", backgroundColor="#000000")]

 and i've also set some stage properties in code during launch:

 

 

 

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

 

 

 

here is my app launching in the simulator 0.9.4

 

Screen shot 2011-03-29 at 1.22.40 PM.png

so, what's the problem?


PlayBook Applications:
Drop Swatch
Developer
Posts: 146
Registered: ‎03-27-2011
My Device: Blackberry Playbook
My Carrier: WiFi

Re: Splash Screen Stretched

I'm inclined to think it's a problem with the image. It appears your image is stretched 2x as wide, perhaps it's an interlaced jpeg, and those are not handled correctly by the simulator?

Try saving as a .png image and see if you get the same problem.
----------------------------------------
If this post solved your problem, please click the 'Accept as Solution' button.
If you found this post useful, please provide a Kudo. Thanks.

Approved Apps: Celestial Slingshot
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Splash Screen Stretched

that was it.  thanks.


PlayBook Applications:
Drop Swatch
Developer
Posts: 146
Registered: ‎03-27-2011
My Device: Blackberry Playbook
My Carrier: WiFi

Re: Splash Screen Stretched

Awesome, so I'm assuming that will solve your other problem as well =) good luck.
----------------------------------------
If this post solved your problem, please click the 'Accept as Solution' button.
If you found this post useful, please provide a Kudo. Thanks.

Approved Apps: Celestial Slingshot
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Splash Screen Stretched

[ Edited ]

very odd.  last night, while scrambling to sign and submit my application on time, i decided to uninstall all of my builds on the simulator and reinstall.  once done, the splash screen was once again stretched, even with a non-interlaced .png file.

 

in fact, i removed the splash screen all together and noticed that the standard splash screen was also stretched!  wtf?!  of course the dimensions of my application were perfectly fine.  only the splash screen was affected.

 

i wasn't able to solve the mystery before submitting my application - so it's submitted with a stretched splash screen - assuming it's not factors of my own development environment causing the error.

 

has anyone else tried using interlaced .jpg files for the splash screen to see if that is indeed at least one cause for stretching of the splash screen?


PlayBook Applications:
Drop Swatch
Developer
Posts: 409
Registered: ‎12-10-2010
My Device: PlayBook
My Carrier: N/A

Re: Splash Screen Stretched

and now it works again.  i guess the issue was a simulator glitch or legacy cache reference.  restarting the simulator a few times seemed to solve this last issue.


PlayBook Applications:
Drop Swatch