Use concat method to concatenate two strings : String concatenation : String Flash / Flex / ActionScript examples


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

 

Use concat method to concatenate two strings


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var sTitle:String = new String("ActionScript Bible");
        sTitle = new String(sTitle.concat(" rocks!"));
        trace(sTitle.valueOf());  // Displays: ActionScript Bible rocks!
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» String concatenation