Comments (8)
You didn't correctly add extension to your project, it works fine.
from aneadmob.
i already added the ane and swc. testing it on a clean project.
ArgumentError: Error #3500: The extension context does not have a method with the name init.
AdMob.as:43
public function init(pubID:String):void
{
_ctx.call("init", pubID);
}
from aneadmob.
me to same error. Can u help me pls ? I am using adobe flash CS6. + air sdk anrdoid 4.0 + library path added AdMob.swc , AdMob.ane what is problem ?
[SWF] com.pozirk.ads.AdMob - 6105 bytes after decompression
[SWF] adv.swf - 4351 bytes after decompression
ArgumentError: Error #3500: The extension context does not have a method with the name init.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.pozirk.ads.admob::AdMob/init()[D:\Pozirk_projects\ANEAdMob\air\AdMob\com\pozirk\ads\admob\AdMob.as:43]
at demo()[C:\Users\HARNER\Desktop\REKLAM ΓALIΕMA\demo.as:19]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()
from aneadmob.
Because this ANE is for Android, it will NOT work on PC!
from aneadmob.
you are wonderfull hahaha =D π very thnx
from aneadmob.
Sorry Δ± have a problem. Publish apk error :/ Error link .jpg = http://www.harunkor.com.tr/yuklenenler/error.jpg
from aneadmob.
Can you create example .fla + apk files pls ?
from aneadmob.
whats this error can you help me please im using windows 10
AIR 30.0.0.107 for android
adobe flash cc 2017
//output
[SWF] com.pozirk.ads.AdMob - 7065 bytes after decompression
[SWF] Untitled-2.swf - 6682 bytes after decompression
ArgumentError: Error #3500: The extension context does not have a method with the name cacheInterstitial.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.pozirk.ads.admob::AdMob/cacheInterstitial()[D:\Pozirk_projects\ANEAdMob\air\AdMob\com\pozirk\ads\admob\AdMob.as:83]
at Main()[C:\Users\user\Desktop\admob\Main.as:43]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()
Test Movie terminated.
// code
package {
import flash.display.MovieClip;
import com.pozirk.ads.admob.AdMob;
import com.pozirk.ads.admob.AdParams;
import com.pozirk.ads.admob.AdEvent;
import flash.events.MouseEvent;
public class Main extends MovieClip {
private var _bannerAdUID:String = "ca-app-pub-6896619151286612/6300978111";
private var _intersAdUID:String = "ca-app-pub-3940256099942544/1033173712";
protected var _banner:AdMob = new AdMob();
protected var _inters:AdMob = new AdMob();
private var _initOK:Boolean = false;
private var _isShow:Boolean = false;
private var _cacheOK:Boolean = false;
public function Main() {
// constructor code
btBanner.addEventListener(MouseEvent.CLICK, showBanner);
btInters.addEventListener(MouseEvent.CLICK, showInterstitial);
_banner.init();
_banner.addEventListener(AdEvent.INIT_OK, onInitEvent);
_banner.addEventListener(AdEvent.INIT_FAIL, onEvent);
_banner.addEventListener(AdEvent.BANNER_SHOW_OK, onEvent);
_banner.addEventListener(AdEvent.BANNER_SHOW_FAIL, onEvent);
_banner.addEventListener(AdEvent.BANNER_LEFT_APP, onEvent);
_banner.addEventListener(AdEvent.BANNER_OPENED, onEvent);
_banner.addEventListener(AdEvent.BANNER_CLOSED, onEvent);
_inters.init();
_inters.addEventListener(AdEvent.INIT_OK, onInitEvent);
_inters.addEventListener(AdEvent.INIT_FAIL, onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_SHOW_OK, onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_SHOW_FAIL, onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_CACHE_OK, onCacheEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_CACHE_FAIL, onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_LEFT_APP,onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_OPENED, onEvent);
_inters.addEventListener(AdEvent.INTERSTITIAL_CLOSED, onCloseIntersEvent);
_inters.cacheInterstitial(_intersAdUID);
}
protected function onEvent(event:AdEvent):void{}
protected function onInitEvent(event:AdEvent):void{
_initOK = true;
}
protected function onCacheEvent(event:AdEvent):void{
_cacheOK = true;
}
protected function onCloseIntersEvent(event:AdEvent):void{
_inters.cacheInterstitial(_intersAdUID);
}
private function showBanner(event:MouseEvent):void{
if(_initOK){
if(!_isShow)
{
_banner.show(_bannerAdUID, AdParams.SIZE_SMART_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_BOTTOM)
_isShow = true;
}
else
{
_banner.hide();
_isShow = false;
}
}
else
{
trace("banner not ready");
}
}
private function showInterstitial(event:MouseEvent):void
{
if(_initOK && _cacheOK)
{
_inters.showInterstitial();
}
else
{
trace("inters not ready");
}
}
}
}
i publish and try it it doesnot work.... please help me
from aneadmob.
Related Issues (20)
- AIR 33 HOT 11
- Single ANE for ARM and ARM64 versions HOT 2
- How to enable child directed ads using this ANE? HOT 1
- 64bit ANE did not work HOT 1
- have you ane for sdk30.0 HOT 1
- The Interstitial not display HOT 3
- Rewarded ads? HOT 2
- Is this extension safe?
- Question: How did you get the google-play-services.zip ? HOT 18
- Extension ID in xml issue HOT 2
- Interstitial crash HOT 2
- error HOT 1
- Warnings - should I ignore them? HOT 2
- airsdk32 and pozirk ane HOT 4
- error creating file aapt tool failed error HOT 1
- Rewarded video not shown HOT 1
- Question: Page Vs Main.as HOT 1
- Compiles fine with this error HOT 1
- Working with Android App Bundle (AAB) HOT 8
- Can you please update ANE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aneadmob.