Giter VIP home page Giter VIP logo

Comments (8)

pozirk avatar pozirk commented on September 15, 2024

You didn't correctly add extension to your project, it works fine.

from aneadmob.

diontoradan avatar diontoradan commented on September 15, 2024

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.

harunkor avatar harunkor commented on September 15, 2024

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.

pozirk avatar pozirk commented on September 15, 2024

Because this ANE is for Android, it will NOT work on PC!

from aneadmob.

harunkor avatar harunkor commented on September 15, 2024

you are wonderfull hahaha =D πŸ‘ very thnx

from aneadmob.

harunkor avatar harunkor commented on September 15, 2024

Sorry Δ± have a problem. Publish apk error :/ Error link .jpg = http://www.harunkor.com.tr/yuklenenler/error.jpg

from aneadmob.

harunkor avatar harunkor commented on September 15, 2024

Can you create example .fla + apk files pls ?

from aneadmob.

Nuflan avatar Nuflan commented on September 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.