Mega Code Archive

 
Categories / Flash ActionScript / Data Type
 

Combining operators with assignment will use the left-hand side of the expression as the first operand

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){         var a=10;         a = a + 10;         //can be more concisely written as         a += 10;     }   } }