2 Replies Latest reply on Feb 2, 2009 6:42 AM by samuels2921

    quoting in flash

    samuels2921
      How can I quote in Flash like this example with dynamic text?
      mytext.text = ("john said "Hi"");
        • 1. Re: quoting in flash
          Level 7
          samuels2921,

          > How can I quote in Flash like this example with dynamic text?
          > mytext.text = ("john said "Hi"");

          You have a couple choices.

          You can swap the outermost double quotes for single quotes, like this:

          mytext.text = 'john said "Hi"';

          or you can leave the outermost double quotes intact, and use a backslash to
          escape the inner quotes, like this:

          > mytext.text = "john said \"Hi\"";

          I prefer the second choice, because the quoted material might include both
          double and single quotes (e.g., an apostrophe).


          David Stiller
          Co-author, Foundation Flash CS4 for Designers
          http://tinyurl.com/5j55cv
          "Luck is the residue of good design."


          • 2. Re: quoting in flash
            samuels2921 Level 1
            thanks