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
Deepu_George_Jacob
Posts: 234
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Unable to add a jpg image

Hi,

    I am trying to add image in an image object but i can't do that the following are the my code please help me

 

topImage = new Image();
topImage.setImage('images/topBar.jpg');
topImage.visible = true;
topImage.x = 0;
topImage.y = 0;
stage.nativeWindow.visible = true;
this.addChild(topImage);

 

 

Images are place in 'images' folder... I sourrended try and catch method it returns an error Error #1065: Variable qnx.fuse.ui.styles::CoreStyles is not defined.

 

 

please help me 

what is the main issue of my program

 

 

Thanks

Deepu George Jacob

Please use plain text.
Developer
UberschallSamsara
Posts: 922
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Unable to add a jpg image


Deepu_George_Jacob wrote:

Hi,

    I am trying to add image in an image object but i can't do that the following are the my code please help me

 

topImage = new Image();
topImage.setImage('images/topBar.jpg');
topImage.visible = true;
topImage.x = 0;
topImage.y = 0;
stage.nativeWindow.visible = true;
this.addChild(topImage);

 

 

Images are place in 'images' folder... I sourrended try and catch method it returns an error Error #1065: Variable qnx.fuse.ui.styles::CoreStyles is not defined.

 

 

please help me 

what is the main issue of my program

 

 

Thanks

Deepu George Jacob


I have gotten Error #1065 when I have failed to put the QNXSkins ANE in my bar-descriptor.xml.

 

Regarding your image loading code, see for example this post.

Please use plain text.
Developer
Deepu_George_Jacob
Posts: 234
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: Unable to add a jpg image

I got it I add ANE file for that
Please use plain text.
Developer
KermEd
Posts: 169
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: Unable to add a jpg image

Worked for me too, thank you

Please use plain text.