문제

I am using adobe air native extension to show ad in my game.I am showing ad on main menu having several buttons like Start Game,About.But it take some time to show ad after function showInterstitial has been called. Meanwhile,if user taps on any button screen is changed and game starts.While playing game ad pops up,that's what i don't want. Is there any way to notshowInterstitial if showInterstitial have been called.

I am using this native extension

and what about android,ios developer.How they manage this thing?

도움이 되었습니까?

해결책

I got solution for this.cache the interstitial before the game loads. Once you cache the interstitial before the game loads, use the following method.

/** Checks to see if an interstitial is cached. Location is optional. **/

 public function hasCachedInterstitial(location:String = "default"):Boolean

and if it has cached interstitial then only call showInterstitial.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top