dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Loading external Html into Dynamic Textfield

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    6

    Loading external Html into Dynamic Textfield

    There must be a simple solution to this problem. I am loading an external Html into a dynamic textfield, when it loads the font size is not the same as what I assigned to the textfield.

    Does anyone know what I am doing wrong.

    Thanks inadvance

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You cannot display html pages as such in flash. You can only use html tags or css and use textfields. here is a tutorial.

    http://www.flashscript.biz/MX2004/ht...inxml2004.html
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    6
    If you use loadVariables("blog.html", ""); it does seem to work as long as you make the textfield 'render html'

    Thanks for the help but the question is more about why the text gets scaled.

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    See my above answer. You are not getting proper HTML rendered in flash, because certain tags are not recognised. The way you describe to display html may be possible but cannot be further controlled.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  5. #5
    Junior Member
    Join Date
    Dec 2006
    Posts
    6
    Thanks very much. I think css is the way to go.

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