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
2) code used in first frame of test app file
3) errors received when publishing
4) errors received when private taken out
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
Post a Comment