A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Importing HTML...what the heck????

Hybrid View

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    90

    Importing HTML...what the heck????

    Have any of you noticed how differently Flash 8 deals with imported html formatted text??

    Holy white space batman!!!!

    You can't seem to have a single carriage return or anything else like it without huge white-space issues...

    And if you embed fonts, forget your style sheet working either...

    You're stuck with crappy aliased fonts which kind of defeats the purpose of the new font features in 8...

    rrrr My flash MX 2004 file looks just fine and is actually basically WYSIWYG from Dreamweaver etc... but try and import the same file using the exact same code (or any other code i've tried so far) with Flash 8, and you have huge whitespace issues...

    Only way I have found to clean it up is to make sure there are NO carriage returns in the code at all... or in the "design view" ...

    What a pain in the a$$

    I use html text because it's so much easier to update at the last minute, but now I have to do so much to it that it looks like absolute crap to work with.

    Is there another way of importing html formatted text that I'm missing??
    Last edited by Branden; 10-20-2005 at 12:40 PM.

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Did you try condenseWhite?

    textField.condenseWhite=true;

    I also believe you can use stylesheets with embedded fonts. What styles are you trying to apply that aren't working?

  3. #3
    Member
    Join Date
    Nov 2000
    Posts
    90
    Ahhh condenseWhite...

    I was using (and I knew it was wrong) ignoreWhite

    Thanks, that fixes the issues of the white space, I'll take a look at my css file and look to see what it might be doing to cause problems.

    I think it might be calling for a different font family, and that's why it won't show up when I embed...

    I'll let ya know.

  4. #4
    Member
    Join Date
    Nov 2000
    Posts
    90
    OK here we go...with the style stuff...

    It seems that when you use html tags (like an <a>, <b>, <font> etc) they get completely ignored when you embed your fonts...

    Same also is true if you use CSS styles...they get completely ignored. Turn the embed fonts off, and everything is fine...just no nice anti-aliasing!!

    Any thoughts??

  5. #5
    Retired SCORM Guru PAlexC's Avatar
    Join Date
    Nov 2000
    Location
    NJ
    Posts
    1,387
    ignoreWhite is an XMLNode Object property, that's why you were using it.
    "What really bugs me is that my mom had the audacity to call Flash Kit a bunch of 'inept jack-asses'." - sk8Krog
    ...and now I have tape all over my face.

  6. #6
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    Well, bold tags won't work unless you embed a bold version of the font as well (just put a textfield off screen and embed the bold characters). A tags should work, but won't show up blue or anything (unless you use CSS to specify that).

    I'm able to get some CSS styles to work with embedded fonts for instance, I can change the color and hover color of text links, but I'm having problems with things like bold CSS, etc.

  7. #7
    Member
    Join Date
    Nov 2000
    Posts
    90
    Yep!!! you got it...

    just made an extra text file with the bold fonts embedded, and that does fix everything... guess you just have to be carefull about what you use in your css...

    Or just create a few extra empty text fields...

    Wicked...this makes me much, much happier..

    Gotta love this site!!!!!!

    Thanks guys

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