Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Embed euro symbol htmlText won't work. Result is small box. Font arial bold. Euro symbol is included in special characters (embed menu)

New Here ,
Nov 27, 2014 Nov 27, 2014

I want to output txt files in html format. Everything works as it should, only the euro symbol will not show.  I want htmlText, because this way I can underline some parts of the text, make color changes ect. ect. I cannot output the euro symbol. I've tried embedding but with no result.

TOPICS
ActionScript
689
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 27, 2014 Nov 27, 2014

-deleted-

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 27, 2014 Nov 27, 2014

Testetd Arial Bold with Flash CC on Win7. Works as expected.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

for me the normal text output also works. But as soon as I use dynamic text with htmlText, if will not show correctly ;(

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 27, 2014 Nov 27, 2014

I used dynamic.

Remember to use htmlText property when inserting strings via Code not text

Also: htmlText is very restricted and can give weird formating issues.

If you want control over your Formating, TextFormat is a much better option.

Flash CS4 Professional ActionScript 2.0

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

I will check the TextFormat, if I can find a tutorial.

Now i have as code:

var loaderSoortjesNl:URLLoader = new URLLoader(new URLRequest("soortjes_nl.txt"));

loaderSoortjesNl.addEventListener(Event.COMPLETE, completeHandlerSoortjesNl);

function completeHandlerSoortjesNl(event:Event):void {

    var loadedText:URLLoader = URLLoader(event.target);

    textSoortjesNl.htmlText = loadedText.data;

}

soortjes_nl.txt have the following inside.

<u>test</u>

test

<u>€</u>

at the moment it will output in:

test

test

instead of:

test

test


Because it's a menu with some prices in it, the euro symbol (i use ctrl+alt+5) is for me real important.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 27, 2014 Nov 27, 2014

you should not use newLines in htmlText but <br> tag.

<u>test</u><br>test<br>€<br><u>€</u>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

that wil also output in the same result

help_flash_as3.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

help2_flash_as3.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

Tnx for the time and energy you're putting in my problem.

I've uploaded a test.rar. Maby if possible you can see what i'm doing wrong?

http://s000.tinyupload.com/?file_id=26049837275859238941

many many tnx

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 27, 2014 Nov 27, 2014

somehow adding &#8364; in my txt file will display the euro symbol in the text. Don't know why adding the euro symbol by ctrl+alt+5 or Alt0128 won't work with the swf output, while it shows in the txt file.

That are more ways leading to rome. I will use &#8364;

anywayz tnx very much for all the time.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Nov 30, 2014 Nov 30, 2014
LATEST

TLF-Text was deprecated in FlashCC, I tested my solution in CC, so don`t be surprised if your workaround doesn`t work after an upgrade.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines