I’m creating a desktop application with Adobe Flash CS 5 and AIR 2.5. Is it possible to display a banner through HTML and JavaScript inside the app?
JS:
<script type="text/javascript">
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = 'http://example.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
HTML:
<div class="headerAd">
<div id="bsap_124567" class="bsarocks bsap_1234524d29"></div>
</div>
Thanks. Uli
You might be able to use StageWebView
http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/media/StageWebView.html