Entries Tagged as "Flex"

Images in flash as3 htmlText, part 2; how to display them correctly

Today, I came across another problem in flash: the displaying of <img>'s in htmlText. Text is just running around it, hiding, breaking into useless pieces.
So I wrote a function that takes an html string, and changes it in such a way, so that images are displayed as they should have been displayed anyway...

20 Comments

Flash htmlText, or how to display images correctly

Today, I came across another problem in flash: the displaying of <img>'s in htmlText.
A whole lot of things turned out to be wrong:
- text is always wrapped around an image, even if there is no space at all, and even when <p>-tags or <br>-tags are used after the image;
- the image's height is not used when calculating the total height of a text component, if it is at the end of the text.

So I wrote a function that takes an html string, and changes it in such a way, so that images are displayed as they should have been displayed anyway.

1 Comment

Is ExternalInterface not working? This might help...

I found out that my Firefox (3.0.5) wasn't handling the ExternalInterface calls. Or Flash was doing something wrong, I dunno.

But I did find a solution, which was to use a different html approach to swf embedding.

No Comments

bushy