Append text to existing strings by using the concatenation assignment += operator : String concatenation : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » String concatenation »

 

Append text to existing strings by using the concatenation assignment += operator


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var attendance:int 24;
        var example:String = "There are ";
        example += attendance;
        
        example += " people";
        
        trace(example);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» String concatenation