Using Mathematical Operators: prefix and postfix
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var quantity:Number = 5; trace(quantity++); // Displays: 5 trace(quantity); // Displays: 6 var quantity:Number = 5; trace(++quantity); // Displays: 6 trace(quantity); // Displays: 6 } } }