convert an integer to a string as3

前端 未结 5 795
死守一世寂寞
死守一世寂寞 2020-12-20 16:58

How do I convert an integer to a string value? This must be easy. \"Ya guys in SO are da best at explaining.\" I\'m still working on these dumb counters.

5条回答
  •  孤城傲影
    2020-12-20 17:43

    I was under the impression AS3 has a String() method which will explicitly coerce a variable of the type number into a String. Integers can be converted to numbers easily enough, and i'm pretty sure it would be done implicitly in this case.

    text = String(number);
    

提交回复
热议问题