₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,832 members, 8,513,903 topics. Date: Thursday, 05 November 2026 at 05:54 PM

Toggle theme

Actionscript Error - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Actionscript Error (818 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 Error • Help With Error Messages On Oscommerce Installation • 2 • 3 • 4

Can Php Do It. • Transfering Data's From Excel Into Mysql Database(php Guru's Please Help) • Any Link Builder In The House?