Using Quotes and Apostrophes in Strings : Escape : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Escape »

 

Using Quotes and Apostrophes in Strings


 

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

        var exampleA:String = 'He said, "Yes."';
        
        var exampleB:String = "He said, 'Yes.'";
        
        var exampleC:String = "He said, "Yes."";
        
        trace(exampleA);
        trace(exampleB);
        trace(exampleC);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Escape