A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Flash 8 with improved html formatted textfield.

Hybrid View

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Posts
    126

    Flash 8 with improved html formatted textfield.

    Hello,


    it´s fantastic that Flash 8 html formatted textfield now embeddes not only non-progressive jpg format but also png, gif and progressive jpg formats and of course swf file format.

    When displaying images and text within a html formatted textfield in Flash 7 it was necessary to specify the width and the height of the image because, while the image was loading, the text was already inside the textfield. When the image was fully loaded it appeared on top of the text.
    In Flash 8 there is no need to specify the width and the height of the image because after the textfield loads the image, the text is rearranged according to the image that has been loaded. These are very good improvements.


    However I wish they had fixed the "bug" when displaying two images side by side which is very handy when displaying thumbnails forexample. Instead of being displayed side by side they appear on top of each other.

    I also want to mention that the text floats around the images inside the textfield and it´s unfortunately not optional if you simple want to display a picture with a text below the image. You might use multiple break tags to push the text below the image but if you are dynamatically loading images you would need to make a script to calculate how many break tags to use.
    Last edited by doorman; 09-17-2005 at 02:33 PM.

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    You can easily display text below image without it floating around it. Just use
    <br clear="all"> after the image.

    Like this:

    <img align='right' height='50' width='50' src='sample.jpg'><br clear="all">

    No floating.

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Posts
    126
    Really !!! thanks alot for the hint. How did you figure this out ? Is it in the documentation ? Now I´m back on the road

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    I dont know if its in the documentation, simply tried it and it worked

  5. #5
    Senior Member
    Join Date
    Oct 2002
    Posts
    126
    Hi Tonypa , I am trying to make the <br clear="all"> tag work but unfortunately it´s not working. I used exactly this line <img align='right' height='50' width='50' src='sample.jpg'><br clear="all"> like you suggested and the image appear but the text is still floating around it. Are we talking about the same thing ? I´m referring to html formatted textfield in Flash 8 are you too ?

  6. #6
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Yes, you are right, I didnt test it enough. Ignore my reply, it doesnt work

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