Possible to convert this var into a string??


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 turn string "357"?

you can't showing of code related output makes difficult answer you.

 

take each result , add string variable.

 

     var yourstring:string = "";

 

layer on somewhere....

 

     yourstring += string(numberbuttons);



More discussions in ActionScript 3


adobe

Comments