How to - create a QNXStageWebView object with visible content.

by Retired on ‎06-16-2011 03:28 PM (2,534 Views)

Symptoms

Content rendered within a QNXStageWebView class is invisible for applications created using the BlackBerry® Tablet OS SDK for Adobe® AIR®.

Diagnosis

As specified in the API reference guide for the constructor method, by default a QNXWebStageView object is invisible until it is attached to a stage, and until the viewport is defined.

Solution

Ensure that the viewport property of the QNXStageWebView class is set, and that the stage property is NOT null.  

 

Example:

 

mySwv = new QNXStageWebView("myBrowser");
mySwv.stage = this.stage;
mySwv.viewPort = new Rectangle(50,50,400,400);