Skip to main content
Inspiring
November 4, 2014
Answered

use html ad banner in as3 AIR

  • November 4, 2014
  • 1 reply
  • 506 views

I am wanting to use an HTML ad banner in my AS3 Air for Android project, here is the html code:

<a href="http://tracking.raftika.com/aff_c?offer_id=1106&aff_id=1708&file_id=12132&file_id=12166" target="_blank"><img src="https://media.go2speed.org/brand/files/raftika/1106/320x50_150k_ArchersVsCerberus_GEN_EN.gif" width="320" height="50" border="0" /></a><img src="http://tracking.raftika.com/aff_i?offer_id=1106&file_id=12166&aff_id=1708&file_id=12132" width="1" height="1" />

I would need it to have a certain height and width on my app. Thanks, any and all help is appreciated.

This topic has been closed for replies.
Correct answer kglad

you can load a html page into an air app using the HTMLLoader class.

1 reply

kglad
Community Expert
November 4, 2014

if those are static images and a static url, download the images, create your banner and use navigateToURL for that url.

Inspiring
November 4, 2014

Unfortunately, that is not an option, as I am using this banner for an ad network( http://raftika.com). The banner is a GIF image. Is there no way to embed HTML in AIR?

kglad
kgladCorrect answer
Community Expert
November 4, 2014

you can load a html page into an air app using the HTMLLoader class.