FORUMS: list search recent posts

send and load vars

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
moises zaragoza
send and load vars
on Jun 13, 2008 at 2:49:43 pm

I have been trying to get get a variable from the server but its just not working for me.

[CODE]

var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {


if (!file.upload("http://www.xxxx.com/printCards/uploadPhoto.aspx")) {
trace("Upload dialog failed to open.");
tester.text = "Upload dialog failed to open.";
} else {


////
request = new LoadVars();
result_lv = new LoadVars();
result_lv.onLoad = 1;
date = new Date();
request.sendAndLoad("http://www.xxxx.com/printCards/lastPhotoUpload.aspx?noCache="+date.getTime(),result_lv,"post");
objResultss = result_lv.resultss;
/////
tester.text = objResultss+" "+file.name;
//objResultss = undefind
}
};


[/CODE]

on [url]http://www.xxxx.com/printCards/lastPhotoUpload.aspx[/url]

[CODE]resultss=userImages/1000/00/10000035_613200810385.jpg[/CODE]


Return to posts index

Pieter Helsen
Re: send and load vars
on Jun 13, 2008 at 5:31:40 pm

I assume you're using AS2? Try this.

 
result_lv = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
objResultss = result_lv.resultss;
tester.text = objResultss+" "+file.name;
}

request.noCache = date.getTime();
request.sendAndLoad("http://www.xxxx.com/printCards/lastPhotoUpload.aspx,result_lv,"post");


Kind regards,
Pieter


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]