Skip to main content
February 9, 2010
Question

help in fixing an htmlText bug.

  • February 9, 2010
  • 2 replies
  • 1118 views

There's a bonafide bug that I've reported through the Adobe bug tracking system, but I really need a

fix now, so was going to have a look at the flex/as3 source and was wondering if

anyone could point me in the right direction, (or better yet, provide the solution.)

Its easy to reproduce this:

I was just able to duplicate the bug using the code example from the end of the Text documentation page in Flex 3.5 reference.

(http://livedocs.adobe.com/flex/3/langref/mx/controls/Text.html)

Just replace their htmlText in that example with a huge block of htmlText containing anchors tags.  Then make the browser window small. Then click some arbitrary area of the htmlText with the mouse (That step is important.) Then scroll using the thumb. Stop the scroll with the mouse pointer directly over one of the hyperlinks you created and release the mouse button. The entire block of htmlText is selected and highlighted and the mouse pointer will not revert to a hand. (Well it will after you click somewhere else.)

Just to clarify the above, when you scroll using a scroll bar thumb you do not have to keep the mouse pointer on the thumb, it can be anywhere when you stop scrolling and if it happens to be over a hyperlink the above happens.

This topic has been closed for replies.

2 replies

February 9, 2010

Incidentally its doing the same thing in Flex 4 (Gumbo) because I just downloaded the Flex 4 SDK from open source and tried it.

February 10, 2010

Just trying to resolve this myself I notice that the source for TextField is not actually included in Open Source and was curious as to why.

Also, here is someone who was having a very similar problem with links in htmlText nearly three years ago (so obviously the issue has been around for a long time and just hasn't been addressed for some reason):

http://forums.adobe.com/message/161523#161523

Maybe this particular forum is more devoted to nuanced discussions about which class something belongs in, but perhaps someone from Adobe can see fit to forward this particular issue to wherever appropriate so it can be resolved.

(I know its an incredibly busy forum here - sorry to hijack the agenda.)

matt_chotin
Inspiring
February 9, 2010

It's likely that the issue is in the core Player TextField class, I don't know if you're going to be able to address with that. Flex 4 would allow you to use the new text engine which might have better behavior.

February 9, 2010

Any sort of work around possible in my own code?  If there were an event occuring on the end of a scroll (which there isn't) that would be a starting point.  But is there any way to stop  bizarre things from happening if the mouse pointer happens to be on a hyperlink when scrolling stops.  Completely converting to Flex 4 at this point is not an option for me.

matt_chotin
Inspiring
February 9, 2010

That I don't know, but this forum is for the open source development of the SDK, so you're likely better off checking on a user forum.