₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,762 members, 8,432,472 topics. Date: Tuesday, 23 June 2026 at 06:50 PM

Toggle theme

Actionscript Error - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersActionscript Error (804 Views)

1 Reply (Go Down)

Actionscript Error by ogzille(op): 2:54pm On Jun 17, 2010
I sent a file to a PHP file from flash, and i want to get the values i echoed in the php file from flash. But its not working

My actionscript code:

var saveJPG:URLRequest = new URLRequest("upload_campic.php"wink;
saveJPG.requestHeaders.push(header);
saveJPG.method = URLRequestMethod.POST;
saveJPG.data = byteArray;

var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
urlLoader.addEventListener(Event.COMPLETE, sendComplete);
urlLoader.load(saveJPG);

function sendComplete(event:Event):void{
var urlLoader:URLLoader = URLLoader(event.target);
var res:String = e.target.data.stat;
var fn:String = e.target.data.filename;
if (res == "1"wink
{
ExternalInterface.call("completeJs", fn);
}
else
{
ExternalInterface.call("errorJs"wink;
}
//warn.visible = true;
//addChild(warn);
//warn.addEventListener(MouseEvent.MOUSE_DOWN, warnDown);
//warn.buttonMode = true;
}

pls help and tell me what im not getting right
Re: Actionscript Error by ogzille(op): 3:47pm On Jun 17, 2010
Hey, it seems i need loads of sleep embarassed .

I have seen the error, my sendComplete function is inside another parent function, i just had to pull it off.
Re: Actionscript Error by DualCore1: 3:56pm On Jun 17, 2010
You put yourself in a very OYO situation cuz I never see any ActionScript kid or pro here.
Re: Actionscript Error by ogzille(op): 6:12pm On Jun 17, 2010
sad
Re: Actionscript Error by DualCore1: 7:52pm On Jun 17, 2010
Yea, whatever. OYO tongue
1 Reply

Airtel Nigeria Website Error Prone?Nairaland 504 Gateway Time-out ErrorHelp With Error Messages On Oscommerce Installation234

Pls I Still Need Help Embedding Image Gallery Inside ArticleNigeria Has Its Own Paypal: CashenvoyDhtml,dualcore,: And Fellow Web Designers