03-25-2011 10:54 PM
Hello,
how do I add a normal bitmap (let's say the .png icon) to my screen?
03-25-2011 10:58 PM
hey,
there are several ways to accomplish this. the easiest way is to use the QNX Image Class:
http://www.blackberry.com/developers/docs/airapi/1
here is an example:
package
{
import flash.display.Sprite;
import qnx.ui.display.Image;
[SWF(width="1024", height="600", backgroundColor="#CCCCCC", frameRate="30")]
public class ImageTest extends Sprite
{
private var image:Image;
public function ImageTest()
{
super();
image = new Image();
image.setImage("image_file.png");
image.setPosition(10,10);
addChild(image);
}
}
}
hope that helps. good luck!
01-17-2012 01:35 PM - edited 01-17-2012 01:38 PM
Thanks