Entries Tagged as "Flash"
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...
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.
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.
A sound-in-your-site howto
Posted by Paul Klinkenberg in Flash , jQuery + Javascript on January 15, 2009
Oow no! Don't put sounds on your web links! But too bad, my wife really
wanted it for her site. And so I started thinking how to do this in a
browser-compatible way.
The ingredients needed:
- Flash with actionscript 3
- Html (the web page)
- Javascript
Recent Comments