;

PDA

Click to See Complete Forum and Search --> : HTML rendering :-(


rin67630
10-09-2007, 08:43 AM
The built in HTML rendering interpreter of Koolmoves (HTML in a Box) appears to be really crappy.
Line breaks in the source code interpreted as line feeds, tables are ignored, H1 is interpreted as a microscopic font (more or less five pixel).
Is that due to a missing or a wrong cascading stylesheet, is that feature useless without hope for improvement?
if the solution is as a stylesheet: where should it be placed? where should be being named?
thank you in advance
Regards ,
RIN67630

w.brants
10-09-2007, 08:55 AM
The built in HTML rendering interpreter of Koolmoves (HTML in a Box) appears to be really crappy.
I don't understand what you are talking about.
As far as I know KM doesn't have a HTML rendering interpreter. If you mean showing HTML text in a dynamic textfield, that's not a KM issue but a Flash Player issue.

Bob Hartzell
10-09-2007, 10:00 AM
KoolMoves doesn't pre-process the html. It just passes whatever you enter to the flash player.

blanius
10-09-2007, 01:53 PM
Yes CSS is the best option for formatting HTML text in Flash.

You can load external CSS or build it in ActionScript

See http://livedocs.adobe.com/flash/8/main/00002714.html#453576

rin67630
10-09-2007, 03:08 PM
I don't understand what you are talking about.
As far as I know KM doesn't have a HTML rendering interpreter. If you mean showing HTML text in a dynamic textfield, that's not a KM issue but a Flash Player issue.
OK, sorry, my mistake!

Anyhow the HTML interpretation in the dynamic textfield is crappy (whoever is responsible for that!).

However the dynamic textfield is the only way I know, to get clear text, that does nor look blurry and is well readable in small fonts.

I'd love to be able to get a bit more out of it.
Has anyone got a better idea, how to proceed?

Thank you in advance.

RIN67630

rin67630
10-09-2007, 03:20 PM
Yes CSS is the best option for formatting HTML text in Flash.

You can load external CSS or build it in ActionScript

See http://livedocs.adobe.com/flash/8/main/00002714.html#453576

Seems to be highly cryptographic.
What means:
"To apply styles to a TextField object, assign the StyleSheet object to a TextField object's styleSheet property" ?

How to do that piece of magic?
I could not find that property in the dynamic text shape properties.

My apologies for not being able to read fluently the Volapük of Adobe.

blanius
10-09-2007, 04:10 PM
It's not in the properties in the GUI you must use Actionscript for this. This is only needed if you wish to use extended formating. The basic Flash HTML text field can handle some simple formating like <B> <u> <hr> and a few others.

Bob Hartzell
10-09-2007, 04:37 PM
Try pixel fonts to get clear text at small font size. You can find them at this site -- flashkit.com.

rin67630
10-12-2007, 05:56 AM
It's not in the properties in the GUI you must use Actionscript for this. This is only needed if you wish to use extended formating. The basic Flash HTML text field can handle some simple formating like <B> <u> <hr> and a few others.
Yes, I discovered that it can handle typeface and font size.
However it interprets always font size as pixel: that means if you enter "fontsize 7" (which would have been a huge title in 72 pt) you just get a miniature text in 7 pixel.
Anyhow, knowing that, it is possible to have an acceptable output without too much expertise.

I would love to be able to enter an Actionscript to reference to a CSS, but I'm afraid, I am a complete rookie in AS.
If I could have been only a few lines of code, would you be so kind to give an example?

thank you in advance

rin67630
10-12-2007, 06:08 AM
Try pixel fonts to get clear text at small font size. You can find them at this site -- flashkit.com.

Thank you Bob, that is also something I did not know.

That would also have the advantage being displayed at the design phase and not only in play mode.

I fetched some pixel fonts (it is sometimes not that easy to find a font with diacritics), I found 1stSortie, which is free and has all needed diacritics.

Apparently, it is not enough to import the .TTF

Koolmoves still displays it blurry at all resolutions. The help did not explain anything about it.

What did I do wrong?

Thank you in advance
RIN67630