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

Reply
Contributor
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.autoFit=true;
            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.

                        webView.autoFit=true;

 

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

 

 

 

 

Developer
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!
Highlighted
Contributor
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.