I have created a few arrays in a frame and am trying to pass
a variable from the main array to choose a second array by passing
a variable using a function after a button is clicked. I use this
code to select the name of the new array:
_root.m1[name].menuTwoID = homeMenu
from this array
var homeMenu:Array = [["residential", "resMenu"],
That should produce a passed variable "resMenu" correct?
It doesn't work later later in a new function when I put it
_root.m2[name].main_text.text = menuTwoID[count-1];
to get the names from the second array.
If I put "resMenu" directly in the code (below) it works
_root.m1[name].menuTwoID = resMenu;