myVariable += 6; is the shorthand version of the following : Arithmetic Operators : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Arithmetic Operators »

 

myVariable += 6; is the shorthand version of the following


 

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

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Language
» Arithmetic Operators