How to display " in dynamic text box

I want to display some random quotes in my website.Like this

“Someone said that something is something” - Someone.

So I need to display the character " .(quotation)

How to display it in dynamic text field?

You would escape the character using \

txt.text = "\"Someone said that something is something\" - Someone."

i have a problem similar to this.

I have this .txt file being loaded into a .htmlText
info_txt=Blue #2092 G 100% Cotton

the % is not visible. Conversely i can use quotations.

argh this is killing me

Check out the unescape function

still no dice.

the 100% Cotten is showing up as 100Cotton. no spaces.

Might be easier to post the code you’re using for your textfield

It’s because the % symbol is used to delimit URL encoded strings. You must use the URL encoded version of the percent symbol in your text file and then use the unescape function in Flash like glos said.

Your text would look like:

Blue #2092 G 100%25 Cotton

And AS code:

info_txt.htmlText = unescape(whateverIsLoadedFromText);

Note that %25 is the URL encoded version of the % symbol. You can find a full list with a simple google search.

Yeah, I thought unescape would do the trick!

The list of URL Encoded values can be found here
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14143&sliceId=2

fabulous, it works.
Thanks

yes it works. thank you.

No problemo :slight_smile: