flex - Playbook AIR SDK images on surface -


i trying write playbook app using air sdk, need surface of kind can load large image onto, subsequently place smaller images on top of , add whole lot scrollpane can pan around screen.

i have tried adding image sprite , displaying in group in application image not show up.

what correct surface kind should using here , how should loading images? (currently using "embed" , loading image bitmapasset.)

thanks

edit:

        var scroll:scrollpane = new scrollpane();          scroll.setscrollcontent(image);         scroll.update();          scroll.graphics.beginbitmapfill(icon.bitmapdata);         scroll.graphics.drawrect(100,100,56,56);         scroll.graphics.endfill();          scroll.update(); 

this code causes non-moving icon drawn behind scrollcontent, want add on top of scroll content moves it.

rather adding images via graphics api, need adding components mentioned in comment. know you're trying use qnx component set, situation little different.

what need stick qnx components if @ possible otherwise may not updated in display list (like things being drawn in background you're experiencing)

for images should using :

var newimg : qnx.ui.display.image = new qnx.ui.display.image(); newimage.setimage( youimgobj ); 

for adding containers mentioned, should using (or similar) :

qnx.ui.core.container 

then should find things drawn in predictable order (last obj added on top of stage).


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -