crrrazydan
Programmer
Hi,
I am loading variables in from a text file, and that is working ok. My problem is I can't access in any way the variables or the text fields that I loaded in from the text file.
I have a movie clip, called BandsMenu on the root level, and in that movie clip, are 12 buttons called bandname1, in each one of those buttons is a text field called Name1. That text field is linked to a variable called bandname1.
I call loadVariables("bandinfo.txt", BandsMenu); on the first frame of BandsMenu on Layer1, and that loads the variables properly.
But I want to be able to work with or put into other variables the band names contained in Name1's bandname1.
I've tried all of the following-
nameOfTheBand = bandname1;
nameOfTheBand = bandbutton1.bandname1;
nameOfTheBand = bandbutton1.Name1.text;
nameOfTheBand = bandbutton1.Name1.bandname1;
nameOfTheBand = _root.BandsMenu.bandbutton1.Name1.text;
None of those put anything into nameOfTheBand. How can I see the variables? Thanks.
I can elaborate more if needed.
I am loading variables in from a text file, and that is working ok. My problem is I can't access in any way the variables or the text fields that I loaded in from the text file.
I have a movie clip, called BandsMenu on the root level, and in that movie clip, are 12 buttons called bandname1, in each one of those buttons is a text field called Name1. That text field is linked to a variable called bandname1.
I call loadVariables("bandinfo.txt", BandsMenu); on the first frame of BandsMenu on Layer1, and that loads the variables properly.
But I want to be able to work with or put into other variables the band names contained in Name1's bandname1.
I've tried all of the following-
nameOfTheBand = bandname1;
nameOfTheBand = bandbutton1.bandname1;
nameOfTheBand = bandbutton1.Name1.text;
nameOfTheBand = bandbutton1.Name1.bandname1;
nameOfTheBand = _root.BandsMenu.bandbutton1.Name1.text;
None of those put anything into nameOfTheBand. How can I see the variables? Thanks.
I can elaborate more if needed.