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
Highlighted
New Contributor
Posts: 3
Registered: ‎08-02-2013
My Device: Z10, PlayBook
My Carrier: pewpewpew

LeadBolt: white,blank ad, in Blackberry playbook (air)

Hi,

can someone help me, please?

 

I have html page with ads, for my air mobile app.

But when I try to show this page on my app with StageWebView, Its not work for me. I see only white screen.

here is my html code:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>SimpleCrystal.ads</title>
    <script type="text/javascript" src="http://ad.leadboltmobile.net/show_app_ad.js?section_id=761276942"></script> 
    <style type="text/css">
        body{
            margin:none;
            padding:none;
        }
        iframe{
            margin:-8px;
        }
    </style>
</head>
<body></body>
</html>

 And here is my as3 code:

var webView:StageWebView = new StageWebView();
webView.stage = this.stage;
webView.viewPort = new Rectangle(365, 526, 320, 50);
webView.loadURL("http://dmitryhryppa.com/ads/simplecrystals/");

Here is the result:

 

But goole was load fine. 

 

I tried to test javascript - t's work fine. So, I cant understand, what is the problem here... Smiley Happy

Sorry for my English, please. 

 

Thanks!

-Dmitry

Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: LeadBolt: white,blank ad, in Blackberry playbook (air)

Hi,

 

Try changing your webview to a qnxstagewebview. Documentation can be found here - https://developer.blackberry.com/air/apis/playbook/qnx/media/QNXStageWebView.html

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Contributor
Posts: 14
Registered: ‎12-12-2012
My Device: NA
My Carrier: NA

Re: LeadBolt: white,blank ad, in Blackberry playbook (air)

If I remember correctly LeadBolt ads will only display on actual devices, so nothing will be displayed when the add is running in ADL or on emulators.