myVariable += 6; is the shorthand version of the following: myVariable = myVariable + 6;
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var myVariable:Number = 6; myVariable = myVariable + 6; trace(myVariable); //12 myVariable += 6; trace(myVariable); //18 } } }