Getting started with iAd extension


hi,

 

i purchased iad extension ios package milkman , having trouble implementing it.

i have followed getting started document having no joy. have attached screenshots show how set , problems.

 

1) api library included

 

help1.gif

 

2) code used in first frame of test app file

 

help2.gif

 

3) errors received when publishing

 

help3.gif

 

4) errors received when private taken out

 

help4.gif

 

5) when turn strict mode off , publish, blank white screen when viewing app on iphone.

 

please help!

 

thanks!

your problem right there in errors. looks coding on time line instead of class. that's fine, means rid of class related things private function , extends class stuff. first error about. when getting second error, here can see in code have set listeners 2 functions not have actual function onbanneradloaded , onbanneradfailed. find 2 in docs or below add them code.

 

function onbanneradloaded(e:iadevent):void

     {

        trace("banner ad loaded.");

     }

 

private function onbanneradfailed(e:iaderrorevent):void

    {

        trace("banner ad failed");

    }

 

 

the last error typo on part. in line 18 have lowercase ad in iad it should iad, remember flash case sensitive. change this.

 

iad.iad.createbannerad(iadbanneralignment.top,iadcontentsize.portrait_and_landscape);



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?