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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 21
Registered: ‎12-01-2010
My Device: Not Specified
Accepted Solution

SDK Beta3 Command Line Compile Errors with QNXStageWebView code

Any assisstance appreciated:  This code compiled perfectly with Beta2:


    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.filesystem.File;
    import flash.geom.Rectangle;
    import qnx.media.QNXStageWebView;
    import qnx.ui.buttons.LabelButton;
    [SWF(width="1024", height="600", backgroundColor="#333333", frameRate="30")]
    public class Complete extends Sprite
        private var webView:QNXStageWebView = null;
        public function Complete()
            webView = new QNXStageWebView();
            webView.stage= stage;
            webView.viewPort = new Rectangle(0,0,stage.stageWidth,stage.stageHeight-50);
            webView.enableJavascript = true;
            webView.enableScrolling = true;
            webView.useCache = true;


..... }

but with Beta3 we get many errors like this:


amxmlc Complete.as


col: 12 Error: Access of possibly undefined property autoFit through a reference with static type qnx.media:QNXStageWebView.



and again for each of the other webView properties.  What to do?





Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: SDK Beta3 Command Line Compile Errors with QNXStageWebView code

[ Edited ]

The previously entirely undocumented QNXStageWebView class has changed (as everyone should have expected).  Fortunately, there is actually documentation for it now in the new online docs.  Check there first and update your code and see if it works again (it did for me).

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Posts: 21
Registered: ‎12-01-2010
My Device: Not Specified

Re: SDK Beta3 Command Line Compile Errors with QNXStageWebView code

You are correct sir!  Many thanks.