PDA

View Full Version : I hate text in flash



Dan0
October 24th, 2007, 11:14 AM
Hey,
Don't get me wrong I love flash. It is doing everything I want beautifully, but ever since actionscript 2.0 has been around I loath using text in flash.
I had the same problem as I am having in the first versions of AS2 but Im making this in AS3!

Ok so apart from struggling with the randomostiy of flash text rendering I finally got it acting how I wanted (just by flipping every switch till it worked).

So I need some HTML text because I want to include hyperlinks and text colour changes WITH text that has been loaded externally. Currently I have the problem that the hitbox around the hyperlinked text is far below the actual visual line of text.

The only work around I can think of is by creating some script that makes an invisible button over the exact text, but this is going to be a nightmare to do! The main source of the problem I suspect lies within the font itself as it is a custom font I made but probably did not compile properly. I do not know if other people have similar problems as this but its damn annoying as everything else works brilliantly.

EDIT: I just tried this with a non-embeded Aerial font and I have the same problem.

Thanks for reading/helping,
Dan

ven
October 24th, 2007, 07:10 PM
Yes, Rich Text does suck in Flash. I as superdisappointed when Flashplayer 9 shipped with the same bugs as before. Ive build a prototype of my own HTMLRender class for my own projects, which can render xml valid xhtml. When I get the code straightened up id like to publish the code and hope to get some community around it, unless nothing is not already in the works somewhere else (id so like a component of the Buzzword engine :sure: )

Eventually we'll get Flashplayer 10 with a completely new textengine.

Dan0
October 25th, 2007, 08:25 AM
Thats what they said about 9. I wish you much sucess with your HTMLRender project but I think that relying on Flash 10 to not ship with the same bugs may be a little too hopeful.
AVM1 has these same bugs. AVM2 is a completly different engine for AS3/Flash 9 player yet it still has the same bugs! I doubt that flash 10 will have AVM3 and even if I did, they probably still wouldn't fix it.
However, I see on other websites that their hyperlinks work fine and the hitboxes are placed correctly, yet when I try it, the hitboxes are completly scewed down even when trying it with Aerial.

There must be a fix!
Thanks for reading,
Dan

ven
October 25th, 2007, 08:51 AM
Flashplayer 10 (codenamed "Astro") *will* come with new powerful textengine

http://aralbalkan.com/1048

Dan0
October 25th, 2007, 05:35 PM
Ok so thats good at least...