Hi Shawn,
Thanks for picking up the case...I really happy that you understand my issue.
Yes I do agree you may not able to help here because as per your guide it should be published flash version 10+.
But as a professional programmer I expect some error handling technical help from you guys.Because the error causing on the IMA sdk. I don't expect to run the ads on <10 player.Just want to catch the error.Thats what I keep posting here.
I am really happy that you guys try to help me to catch the error.
As per your suggestion I commented the line adsLoader.loadSdk(); but the same error cause when I try the line adsLoader.requestAds(adsRequest);
Here is code on the swf
public function requestAds(adTag:String):void
{
var adsRequest:AdsRequest = new AdsRequest();
adsRequest.adTagUrl = adTag;
adsRequest.linearAdSlotWidth = 500;
adsRequest.linearAdSlotHeight = 400;
adsRequest.nonLinearAdSlotWidth = 550;
adsRequest.nonLinearAdSlotHeight = 400;
// Instruct the AdsLoader to request ads using the AdsRequest object.
try
{
adsLoader.requestAds(adsRequest);
}
catch(e)
{
trace("catched")
}
}
Still I got the error
Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
at flash.display::LoaderInfo/get loader()
at com.google.ads.ima.loader::AdsLoaderImpl/get loaderInfoWrapper()
at com.google.ads.ima.loader::AdsLoaderImpl/isEmbeddedSdk()
at com.google.ads.ima.loader::AdsLoaderImpl()
at com.google.ads.ima.loader::AdsLoaderImplFlash10()