Mega Code Archive

 
Categories / Flash ActionScript / Data Type
 

Include the number variable in a string expression This will implicitly convert the number to a String

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         for (var i:int = 99; i > 0; i--) {             trace(i + "bottles of beer on the wall");         }     }   } }