if(buttons[a].currentLabel != "1")
trace (numberButtons) returns:
How do I turn this into the string "357"?
You can't be showing all of the code related to that output which makes it difficult to answer you.
Take each result and add it to a String variable.
var yourString:String = "";
layer on somewhere....
yourString += String(numberButtons);
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?
Europe, Middle East and Africa