11-19-2012 02:56 AM
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
11-19-2012 04:10 AM
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.
11-20-2012 03:39 AM
12-13-2012 04:51 PM
Worked for me too, thank you