Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-24-2004, 12:38 PM   #1
ggg115
Registered User
 
Join Date: Jun 2004
Posts: 5
Default is Load to many layers possible

Is it possible to use a LoadVariables command and send the results to more then one layer???
ggg115 is offline   Reply With Quote
Old 06-24-2004, 02:39 PM   #2
stv
programmer, maybe.
 
stv's Avatar
 
Join Date: Nov 2001
Location: Paris, EU
Posts: 255
Default

what do you mean? please be more specific.
__________________
stv
--------------------------------
life.prototype.reset();
stv is offline   Reply With Quote
Old 06-24-2004, 04:01 PM   #3
ggg115
Registered User
 
Join Date: Jun 2004
Posts: 5
Default

for instance I have a load variables command

loadVariables("load.aspx", "_root", "GET");

can I send the same exact data to layer 1 2 and 3 without calling the function another 3 times wasting precious bandwith???

like
loadVariables("load.aspx", "_root" & "layer 2" & "layer 3", "GET");
for example but that doesn't work.....

please help

Last edited by ggg115; 06-24-2004 at 04:04 PM.
ggg115 is offline   Reply With Quote
Old 06-24-2004, 04:52 PM   #4
stv
programmer, maybe.
 
stv's Avatar
 
Join Date: Nov 2001
Location: Paris, EU
Posts: 255
Default

try using the loadVars object:

myLoadVars=new LoadVars();
myLoadVars.onLoad = function(success){
if(success){
_level0.var1 = this.var1
_level1.var1 = this.var2
_level2.var1 = this.var3

}else{
_level0.displayText = "loading error"
}
}
myLoadVars.sendAndLoad("file.asp", myLoadVars,"POST");

use POST if you have to send and load big files
__________________
stv
--------------------------------
life.prototype.reset();
stv is offline   Reply With Quote
Old 06-25-2004, 01:49 AM   #5
ggg115
Registered User
 
Join Date: Jun 2004
Posts: 5
Default

hmm that seems easy ill give that a try thanks for the quick response and actually understanding me you get an A+ just for effort.
ggg115 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.