Include the number variable in a string expression. This will implicitly convert the number to a String. : int « Data Type « Flash / Flex / ActionScript
Include the number variable in a string expression. This will implicitly convert the number to a String.
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
for (var i:int = 99; i > 0; i--) {
trace(i + "bottles of beer on the wall");
}
}
}
}