A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: HTML rendering :-(

  1. #1
    Member
    Join Date
    Jul 2006
    Posts
    90

    HTML rendering :-(

    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

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Quote Originally Posted by rin67630
    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.

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    KoolMoves doesn't pre-process the html. It just passes whatever you enter to the flash player.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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/ma...14.html#453576

  5. #5
    Member
    Join Date
    Jul 2006
    Posts
    90
    Quote Originally Posted by w.brants
    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

  6. #6
    Member
    Join Date
    Jul 2006
    Posts
    90
    Quote Originally Posted by blanius
    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/ma...14.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.

  7. #7
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    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.

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Try pixel fonts to get clear text at small font size. You can find them at this site -- flashkit.com.

  9. #9
    Member
    Join Date
    Jul 2006
    Posts
    90

    I already made some progress...

    Quote Originally Posted by blanius
    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

  10. #10
    Member
    Join Date
    Jul 2006
    Posts
    90

    Still being stuck...

    Quote Originally Posted by Bob Hartzell
    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

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