Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

How to - create a QNXStageWebView object with visible content.

by Retired on ‎06-16-2011 03:28 PM (2,536 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);
Contributors
Users Online
Currently online: 17 members 1,701 guests
Please welcome our newest community members: