Hello,
I am making an drop down menu that changes color when you click on an certain button (that is the frame) and that is done (with the code below) the only problem is that it overrides the label_txt (an text box over the button) and I can’t create an new label.
I have this code:
if (moviebkg_mc._currentframe == 1) {
for (l=0;l<menuButtons.length;l++){
var mainMenuColor:Color = new Color("menuButton"+l)
mainMenuColor.setRGB(0x009999);}}
if (moviebkg_mc._currentframe == 2) {
for (l=0;l<menuButtons.length;l++){
var mainMenuColor:Color = new Color("menuButton"+l)
mainMenuColor.setRGB(0x006699);}}
if (moviebkg_mc._currentframe == 3) {
for (l=0;l<menuButtons.length;l++){
this["menuButton"+l].label_txt.text = menuButtons[l];
var mainMenuColor:Color = new Color("menuButton"+l)
mainMenuColor.setRGB(0xCC3300);}}
anybody knows how to keep the current text and/or create an new text at the text box?
With kind regards,
theoneneo