Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,323 members, 7,819,104 topics. Date: Monday, 06 May 2024 at 11:23 AM

Actionscript Error - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Actionscript Error (786 Views)

How Do I Fix "Player.exe Has Stopped Working" Error Message. / Invalid Security Token Error 403 Blogger Template / [Help Request] Help With Database Connectivity Error (2) (3) (4)

(1) (Reply)

Actionscript Error by ogzille(m): 2:57pm 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. HELLLLPPPPP

(1) (Reply)

Why Is This Not Working For Me / How Do I Retrieve Fields From The A Java Derby Database / Developing Social Networking Website Using PHP And MYSQL

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.