I'm trying to dynamically change values for a set of global variables and I'm beginning to wonder if it's even possible.
The global variables are:
_global.item1_
_global.item2_
_global.item3_
(up to)
_global.item7_
This is the best idea I can come up with that doesn't work.
Any help is greatly appreciated!Code:for (n = 1; n <= 7; n++) { if (eval("item" + n + "_") == "new") { set(_global["item" + n + "_"], "clear"); trace("item1_ = " + item1_); } }