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
Contributor
Posts: 10
Registered: ‎02-21-2011
My Device: Not Specified

Problem In Loading First PAge

Hello Friends, 

 I m new bb tablet developer, I created a flex Mobile Porject , In First Page

I draw a Image at  background

Draw 10 - 14 buttons & apply skinning with focus & nonfocus Images

 

First when i was running my page, it take some small time but loaded. But Now the page is not loaded, i get  the first black background

 

Plz suggest me wt to do to load my page correctly in less time. Thanks in advance...

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Problem In Loading First PAge

To determine why the page is not loading, you will need to post some code. 

When you say "not loading fast", how long is it taking?

Contributor
Posts: 10
Registered: ‎02-21-2011
My Device: Not Specified

Re: Problem In Loading First PAge

Thanks Jtegen, Actually I get the reason what why my page not loading

 

In Page I added a button 

 

<s:Button id="info" width="34" height="32" icon="@Embed(source='images/info.png')" skinClass="skins.ImageButtonSkin2"/>

 

 

&& In .ImageButtonSkin2 class i when i remove smoothingQuality="high" propertry then my page loaded without any problem

 

<s:BitmapImage id="iconDisplay" fillMode="scale" scaleMode="letterbox" smooth="true" smoothingQuality="high" height="40" width="120"/> 

 

I dont know wt the reason behind it , If any one know it then tell me.

Highlighted
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Problem In Loading First PAge

Might have to do that the image is not available when it is trying to smooth it.  Probably dont need to smooth an icon image for a button anyway.  If your images are PNG-24, they are probably pretty crisp anyway.

Developer
Posts: 382
Registered: ‎05-19-2008
My Device: BlackBerry Torch
My Carrier: AT&T

Re: Problem In Loading First PAge

It looks like the difference is putting the "smoothingQuality" attribute in the class vs on the element itself. I would guess this might be a bug and should be reported to the Developer Issue tracker.

Bill
-------------------------------------------
Check out my book on BlackBerry Development for Java.
And my other really really old book
My Apps: FlashKids