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
aswathykrishnan
Posts: 28
Registered: ‎02-17-2011
My Device: Not Specified
Accepted Solution

instead of QNXStageWebView

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 .....!

Please use plain text.
Contributor
mr_subtle
Posts: 10
Registered: ‎05-02-2011
My Device: Playbook
My Carrier: Rogers Wireless

Re: instead of QNXStageWebView

If you're using only basic-HTML, then the TextField component will work.

Theres documentation in the SDK and online about what HTML tags it supports. It's pretty limited, mind you. But at least you can overlay other controls on top of it.
Please use plain text.
Contributor
jaimotwani
Posts: 11
Registered: ‎03-29-2011
My Device: Playbook and Blackberry Torch
My Carrier: Mobile Application developer

Re: instead of QNXStageWebView

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.

Please use plain text.
Contributor
aswathykrishnan
Posts: 28
Registered: ‎02-17-2011
My Device: Not Specified

Re: instead of QNXStageWebView

package
{
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.geom.Rectangle;
    
    import qnx.media.QNXStageWebView;
    import qnx.ui.buttons.Button;
    

    public class ActionTest extends Sprite
    {
        public function ActionTest()
        {
            super();
            
            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.addChild(bttn);
            
            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??

Please use plain text.
Contributor
jaimotwani
Posts: 11
Registered: ‎03-29-2011
My Device: Playbook and Blackberry Torch
My Carrier: Mobile Application developer

Re: instead of QNXStageWebView

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.

 

 

Please use plain text.
Contributor
aswathykrishnan
Posts: 28
Registered: ‎02-17-2011
My Device: Not Specified

Re: instead of QNXStageWebView

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 .

Please use plain text.
Developer
pyth
Posts: 463
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: instead of QNXStageWebView

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

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Please use plain text.
Contributor
jaimotwani
Posts: 11
Registered: ‎03-29-2011
My Device: Playbook and Blackberry Torch
My Carrier: Mobile Application developer

Re: instead of QNXStageWebView

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.  

 

Please use plain text.
Contributor
aswathykrishnan
Posts: 28
Registered: ‎02-17-2011
My Device: Not Specified

Re: instead of QNXStageWebView

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????

 

 

Please use plain text.
Developer
pyth
Posts: 463
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: instead of QNXStageWebView

simple. because there's no webview, only a stagewebview :smileytongue:

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Please use plain text.