all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

loadVars problem


loadVars problem goseta
7/5/2004 9:17:51 PM
flash actionscript:
Hi I have this code:

var myvar = new LoadVars();
myvar.action = "getSlides";

my problem is that I need to set variables for the LoadVars object
dinamically, like for example

var mytestvar = "action";
var myvar = new LoadVars();
myvar["mytestvar"] = "getSlides";

I thougth the above code should work, but not, anyone knows how I can set the
variables dinamically

thanks for any help

Re: loadVars problem pazzoboy
7/5/2004 10:50:21 PM
var mytestvar = "getSlides";
var myvar = new LoadVars();
myvar.action= mytestvar;
AddThis Social Bookmark Button