Admob & ActionScript 3
I saw that Admob just released an SDK for Flash Lite (Action Script 2). I'm working on an AS3 project, and could not find anywhere on the internet an AS3 version of the SDK.
Does anyone have any knowledge of s开发者_JAVA技巧uch an SDK for AS3 or using the AS2 SDK in AS3.
Thanks
Can
There is no as3 sdk. Also the as2 sdk does not work in as3. It needs to be rewritten in as3. I am not very talented with as3. Can someone rewrite the AdMobAd.as class to as3?
You could try to use the AS2 SDK in an AS2 file that has some methods exposed or reads some URL variables and then try to load that AS2 SWF file into an AS3 container. More info on loading AS2 files in AS3 containers can be found here:
Load AS2 SWF Into AS3 SWF and pass vars in URL
and here:
http://www.kirupa.com/forum/showpost.php?p=1964550&postcount=249
It's a total pain, but it beats having to write the SDK all over again in AS3.
You can check my test flash application for android. I use the StageWebView with html to load the admob. What u need to do is hosting your html page which embeds the admob ads on your web host, then load the html page in your application by StageWebView.
精彩评论