A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Using double qoutes in a string

  1. #1
    Flash or die
    Join Date
    May 2004
    Location
    San Francisco, California
    Posts
    127

    Using double qoutes in a string

    I am having a problems with a string:

    this.info_txt.text = "This is a "test"";

    When is displays in a dynamic textfield is shows up as:
    This is a ,test,

    I know there is a special syntax to get rid of this. Can someone tell me what it is?
    // rocking flash cs4,as3

  2. #2
    Uses MX 2004 Pro Quixx's Avatar
    Join Date
    Nov 2004
    Location
    U.S.
    Posts
    877
    Hi,
    You need to put a "\" in front of the the quote marks you wish to appear in the text. So you'd write:

    Code:
    this.info_txt.text = "This is a \"test\"";

  3. #3
    Flash or die
    Join Date
    May 2004
    Location
    San Francisco, California
    Posts
    127
    Thanks! I knew it was simple.
    Last edited by exuk; 02-15-2006 at 01:19 AM.
    // rocking flash cs4,as3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center