Joining Strings with '+' : String concatenation : String Flash / Flex / ActionScript examples


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

 

Joining Strings with '+'


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

       var example:String = "This" "works";
       var attendance:int 24;
       var output:String = "There are " + attendance + " people";
       
       trace(output);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» String concatenation