var buttons:Array=[button1,button2,button3,button4];
if(buttons[a].currentLabel != "1")
{var numberButtons=buttons[a].currentLabel;
trace (numberButtons);}
trace (numberButtons) returns:
3
5
7
How do I turn this into the string "357"?
Additional question:
If you trace the the numberButtons variable twice, it adds the results from the first trace to the results of the second trace. For instance, if the first trace returns "451" and second trace is supposed to return "357", it will instead return "451357" ,combining both traces. Does anyone know how to remove the numbers from the first trace from the variable and only return the numbers from the second trace?
North America
Europe, Middle East and Africa
Asia Pacific