Simple Actionscript Question (HA!) [FMX04]

Like any of it’s simple, but here’s what I’ve got…

I’m doing my loadVars, everything’s going peachy, but now I want to swap the variable. I’ve got a bunch of vars in a text file, and here’s how I’m doing it right now…


on (release) {
	output1.text = myLoadVar.name2;
}

Now, this works ok, but with as many vars as I’m planning for, I’d like something that I didn’t have to make a ton of frames just to have it run.

I’d like something more like this…


on (release) {
	output1.text = myLoadVar.(name('prevnum'+1));
}

How do I do this?

:kir: <—Just for fun.