I really need help here. Allow me to share a snippet of my code:
Code:
// prepare listener for the ad banner
adListenerObject = new Object();
adListenerObject.path = this;
adListenerObject.onLoadInit = function(target_mc:MovieClip)
{
this.path.isLoaded = true; // ad was succesfully loaded
target_mc.link = String(this.path.adLinkUrl);
target_mc.onRelease = function() {
getUrl(this.link, "_blank");
}
}
// send ad request:
prepareRequest(); /// internal - prepare URL request
var xmlObj = new XML();
xmlObj.ignoreWhite = true;
xmlObj.path = this;
xmlObj.addRequestHeader("User-Agent","null");
// onLoad handles the received URL (with banner info)
xmlObj.onLoad = function (success:Boolean)
{
if (success)
{
xmlObj.path.returnUrl = xmlObj.toString();
xmlObj.path.parseUrl(); // internal func
var bannerLoader:MovieClipLoader = new MovieClipLoader();
bannerLoader.addListener(xmlObj.path.adListenerObject);
bannerLoader.loadClip(xmlObj.path.bannerImgUrl,xmlObj.path.adMC); // this is the line that I think causing the crash (without it - no crash)
}
}
// send request for ad
xmlObj.load(this.requestUrl,"POST");
Looks good to me (maybe because I wrote it...).
Any idea what's causing the crash ONLY on N8 (= FL 4.0)?
Thanks!
Ranco