【发布时间】:2014-03-13 12:10:54
【问题描述】:
我尝试通过此链接使用 admob ANE:
https://code.google.com/p/flash-air-admob-ane-for-ios-and-android/
按照说明,加载ane文件并输入代码:
var admob:Admob=Admob.getInstance();//create a instance
admob.setKeys("a152834c2b8cce6");//set admob appid
admob.showBanner(Admob.BANNER,AdPosition.BOTTOM_CENTER);//show banner with relation position
但似乎 Flash 无法正确加载 ane。错误:
Scene 1, Layer 'Layer 6', Frame 1, Line 15 1046: Type was not found or was not a compile-time constant: Admob.
Scene 1, Layer 'Layer 6', Frame 1, Line 15 1120: Access of undefined property Admob.
Scene 1, Layer 'Layer 6', Frame 1, Line 17 1120: Access of undefined property Admob.
Scene 1, Layer 'Layer 6', Frame 1, Line 17 1120: Access of undefined property AdPosition.
我正在使用带有 air sdk 4.0 的 flash cs6,我有什么遗漏吗?
【问题讨论】:
-
您是否导入(添加)了ANE。
标签: actionscript-3 flash air