# Simple Actionscript Question (HA!) \[FMX04\]

**URL:** <https://forum.kirupa.com/t/simple-actionscript-question-ha-fmx04/107845>\
**Category:** Uncategorized\
**Created:** [April 19, 2004, 6:13pm UTC](https://forum.kirupa.com/t/simple-actionscript-question-ha-fmx04/107845 "2004-04-19T18:13:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Random\_Hero](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@Random\_Hero](https://forum.kirupa.com/u/Random_Hero)\
**Post date:** [April 19, 2004, 6:13pm UTC](https://forum.kirupa.com/t/simple-actionscript-question-ha-fmx04/107845/1 "2004-04-19T18:13:08Z")

</div>

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…

```auto

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…

```auto

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

```

How do I do this?

:kir: \<—Just for fun.
