05-03-2011 06:30 AM
Is ther any component instead of QNXStageWebView to display html content in playbook?..QNXStageWebView is not a good one because other display objects are always coming below of it. i think there is no solution for it.....but this will badly affect my application.. i can't continue with it ......so please help .....!
Solved! Go to Solution.
05-03-2011 08:48 AM
05-03-2011 09:12 AM
you can use flash's stagewebview in api
flash.media.StageWebView. It also works fine. But you wouldn't have webkit engine capability.
The problem you are saying is occurring because you are not handling adding and removing of components on your stage properly. Please cross check on that. QNXStageWebView has more capabilities than flash's StageWebView.
05-03-2011 11:32 PM
public class ActionTest extends Sprite
public function ActionTest()
var webview:QNXStageWebView = new QNXStageWebView();
// support autoOrients
var rect:Rectangle = new Rectangle(0,0,600,590);
webview.stage = stage;
webview.zOrder = 1;
webview.viewPort = rect;
var bttn:Button = new Button();
bttn.x = 20;
bttn.y = 20
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
if i run this code am not able to see that button.it has to come on top of webview...this is my problem...can anyone help me to solve it??
05-04-2011 02:37 AM
you cannot put the button above webview. You have to put it outside webview boundary. Like if your co-ordinates are (0,0,600,590) then your button co-ordinates should be something like x=650 and y=590.
05-04-2011 03:11 AM
Ok.... Then what is the need of QNXStageWebView?? i have been looking for a solution since 2 weeks....so you are telling we cant solve this problem right? then Is ther any method to load html content instead of QNXStageWebView so that i can place display objects like buttons and dropdownlist on it .
05-04-2011 03:23 AM
you should know that the StageWebView classes are covering the stage, so no matter what, they will always be on top of others. that's why you can't have a button above that
so if you want to use that class, make the viewport smaller and have a button outside
05-04-2011 03:23 AM
May be i am not able to get your requirement correctly. But what i am saying is that you can not overlap one object over another on stage and view them both at the same time. You can place buttons, dropdown list or whatever you want but keep them out of the boundry of webview.
Thing is simple keep a size of rectangle to display the webcontent and rest of the stage(outside rectangle) you can use for putting your buttons or whatever you want.
I hope it will solve your problem.
05-04-2011 04:34 AM
but i have to display button and all on top of webview. ie, when i click on button a dropdownlist should be displayed on webview but nw its going behind it..! Anyway i have to try another method otherwise my application will be wasted....in ipad and android it is possible to place on top of webview like other display objects...why not in playbook????
05-04-2011 08:51 AM
simple. because there's no webview, only a stagewebview