Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
-deleted-
Copy link to clipboard
Copied
Testetd Arial Bold with Flash CC on Win7. Works as expected.
Copy link to clipboard
Copied
for me the normal text output also works. But as soon as I use dynamic text with htmlText, if will not show correctly ;(
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
you should not use newLines in htmlText but <br> tag.
<u>test</u><br>test<br>€<br><u>€</u>
Copy link to clipboard
Copied
that wil also output in the same result
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
somehow adding € 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 €
anywayz tnx very much for all the time.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now