A Flash Developer Resource Site

Results 1 to 15 of 15

Thread: Bold/Italic problem with text editor.

  1. #1
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8

    Bold/Italic problem with text editor.

    Is it possible to bold/italic single words in the text editor?

    If not, is there any good way to create sentences with one or two bold words?

    I tried to import text as an image but scaling the flash presentation to higher resolutions makes the text soft looking.

    I have the newest version of Koolmoves.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    No. That requires rich text and that has not been implemented yet.

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Must it be editable? You can do this by making field HTML but you cannot edit it at runtime in HTML.

  4. #4
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    Quote Originally Posted by blanius View Post
    Must it be editable?
    No. What I'm doing is basically a short presentation which has couple of pages of text and pictures.

    I'll try that HTML thing and see if it works out well.

    Do you guys have any idea when the rich text feature will be implemented?

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    When you create your text field just check the HTML box in the properties panel. Then use

    <B></B> for bold and <i></i> for italics. Keep in mind it only supports a small subset of HTML

  6. #6
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    Thanks. It worked well.

    Only problem is that you cannot fade in/out dynamic text. So I'm using this http://board.flashkit.com/board/showthread.php?t=645475 solution now.
    It works but it is not the coolest way.

    edit:

    And it is actually such a bad way that there must be a better way to do it.
    Dynamic text looks nicer than normal text but because it is missing the fading it is pretty much useless, unless there is an easy way to do the fading.
    Last edited by nepa; 05-14-2009 at 01:07 AM.

  7. #7
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    put the text in a movieclip, also select on the textfield "embed characters" and set to yes. then you can fade it

  8. #8
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    Now it works! Thank you very very much!

  9. #9
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    I was a bit too hasty.
    I did a quick test at work and it seemed to work ok but when I started to work with the actual presentation at home I found out that html tags don't work if you are using embedded characters. The bold words just disappears.
    If you unselect the embedded characters the html tags works but the fading doesn't.
    Irritating.
    Last edited by nepa; 05-15-2009 at 01:11 AM.

  10. #10
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    If you want to use bold text together with font embedding, you need to embed the bold version of the font separately.

    I would suggest not to use font embedding and solve it like this
    Code:
    var cmf = new ColorMatrixFilter();
    var cmfMatrix = cmf.matrix;
    
    // set txt1 alpha to .5
    
    cmfMatrix[18] = .5;
    cmf.matrix = cmfMatrix;
    txt1.filters = [cmf];

  11. #11
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    Are there any disadvantages in font embedding other than it increases the size of the swf file?

    I embedded all four versions of the font I'm using and the size of the movie increased only about 100kb.

    Now the bold fonts and fading works but only if you watch the movie from Koolmoves i.e. using the 'play in web browser' button.

    Exporting the movie causes some of the text to disappear, again.

    What is the difference between export and play functions? The temporary swf file that Koolmoves generates when 'play in web browser' is selected works fine but the exported swf file doesn't.

    w.brants:

    I tried your suggestion also and I managed to do some fading but my actionsript skills are not good enough (yet) to do any stuff that really works.

  12. #12
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Quote Originally Posted by nepa View Post
    Exporting the movie causes some of the text to disappear, again.
    That's strange. It shouldn't make any difference.
    The main disadvantage of font embedding is the filesize. Another thing is that to me a device font sometimes looks better when the fontsize is small. The advantage is that the viewer doesn't need to have the font installed on his computer.

  13. #13
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    I started doing the whole presentation from scratch and now it works. I have no idea why it didn't work before but fortunately I got it working.

    I'll be back if/when I have more to ask.

    Thank you all for your help!

  14. #14
    Junior Member
    Join Date
    May 2009
    Location
    Finland
    Posts
    8
    The problems continue.

    The managed to repeat the text disappear error.

    I have a presentation which has 11 key frames and I cannot export the movie anymore. The temporary swf file, which Koolmoves generates when 'play in web browser' is selected, works fine.

    It seems that there is something missing from exported swf file because the size is only 100KB, compared to temporary file which is 400KB. The embedded fonts maybe?

    The exporting worked fine when I had only couple of key frames in the presentation.

    I can use the temporary file so the defect doesn't stop my work but it makes me wonder is there is a bug in Koolmoves...

  15. #15
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Send the fun file and all assets to compile to [email protected]

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