all groups > flash actionscript > september 2005 >
You're in the

flash actionscript

group:

geturl javascript - get data ????


geturl javascript - get data ???? chuckies19982456120000
9/4/2005 11:29:09 AM
flash actionscript: We have a customer who will not let us write files to the users' computers.
Hence, we cannot use loadvars when retrieving data from a server/database and
posting to flash. we are using setvariables via geturl/javascript. this means
that i have to retrieve all the data in the frame prior to the frame where I
need the actual data. this also means i have to force the user to click two
buttons (and on each button, i do the geturl) in order to flash to actually get
the data. this is cumbersome, but working okay. problem is, i'm now at a
point where i must retrieve a HUGE data string via the
geturl/javascript/setvariables method, AND there's no button on the frame in
question.

i've tried all sorts of timers and loops on the return variable, trying to
suck the data into flash before attempting to process it. nothing works. can
anyone help?



Re: geturl javascript - get data ???? DazFaz
9/5/2005 10:29:46 AM
Have your tried this method:

var ReceivingData:LoadVars = new LoadVars();
var SendingData:LoadVars = new LoadVars();
SendingData.SomeDataHere = _root.SomeDataHere;
SendingData.sendAndLoad("TranslationPage.asp", ReceivingData, "GET");
ReceivingData.onLoad = function(success:Boolean) {
if (success) {
//Do this
} else {
//Do this
}
};
AddThis Social Bookmark Button