弄不好需要在文本字段/文本错误文本、字段、不好、错误

2023-09-08 15:33:50 作者:⒈顆糖⒉種味

排序复杂的场景 - 只是好奇,如果任何人都可以用的东西上来:

Sort of a complicated scenario - just curious if anyone else could come up with something:

我有一个文本控件,当我把它的滚动和停止光标移到有一个网址一些文字滚动,光标不会恢复到一只手,也flash播放器开始充当如果选择正在被从上一个光标位置进行。所以IOW闪光灯一位诚实的错误,只要我能确定。

I have a Text control and when I scroll it and stop the scroll with the cursor over some text that has a url, the cursor doesn't revert to a hand, and also flash player starts acting as if a selection is being made from the last cursor position. So IOW a bonafide bug in flash as far as I can determine.

以上可能不是完全清楚,所以让我解释。如果你抓住一个滚动条拇指并开始移动它向上和向下,你实际上并不必须保持在大拇指上的鼠标指针,而这样做。当你停止滚动,鼠标指针可能会在浏览器窗口之外,您的Flash应用程序中,而不是目前的滚动条拇指,或其它地方。当你停止使用鼠标指针定位在文字与HTML锚(超链接)滚动pviously提到的错误的$ P $发生。在该点的光标进入中间状态的一些状态,和不显示的网址手指针,此外充当如果一些文本选择是从之前的涡卷的一个光标位置发生

The above probably wasn't completely clear so let me elaborate. If you grab a scrollbar thumb and start moving it up and down, you don't actually have to keep the mouse pointer on the thumb while doing so. When you stop the scroll, the mouse pointer could be outside the browser window, inside your flash application, but not currently on the scroll bar thumb, or wherever. The previously mentioned bug occurs when you stop the scroll with the mouse pointer positioned over text with an html anchor (a hyperlink). At that point the cursor enters into some state of limbo, and doesn't show the url hand pointer, and furthermore acts as if some text selection is taking place from the last cursor position prior to the scroll.

所以现在的问题是,我可以模拟在code什么样的活动来摇晃闪现出这个错误的状态,它是在,而且进一步的在的是什么事件可能我执行此模拟事件(假定例如没有AS3事件信号的涡旋的端部。)

So the question would be, what sort of event could I simulate in code to jolt flash out of this erroneous state it is in. And furthermore in what event could I perform this simulated event (given that for example there is no AS3 event to signal the end of a scroll.)

需要明确的是,有问题的文本控件是在画布上,而帆布(称为A)是另一个画布其实际拥有的滚动条,并滚动发生改变画布上的scrollRect的。

To be clear, the Text control in question is on a canvas, and that canvas (call it A) is on another canvas which actually owns the scrollbar, and scrolling takes place by changing the scrollRect of canvas A.

推荐答案

这是真的回应viatropos。

This is really in response to viatropos.

我只是能够从的文本文档中的Flex 3.5参考页。

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.

只是含有的htmlText锚标记一块巨大取代他们的htmlText在这个例子中(a取代; ...< &LT / A> )。然后,让浏览器窗口小。然后用鼠标点击使用htmlText的一些任意区域(这一步是很重要的。)然后滚动使用拇指。停止用光标滚动直接在您创建的一个超链接,然后松开鼠标。的htmlText的整个街区被选中,并强调和鼠标指针将无法恢复到一只手。 (那么它会在你点击别的地方。)

Just replace their htmlText in that example with a huge block of htmlText containing anchors tags (<a>...</a>). 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 cursor directly over one of the hyperlinks you created and release the mouse. 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.)

至于通过他们的bug跟踪系统报告这土坯,我想,如果我要等待数个月,它被固定。我在一年前,被永远定格报导另一个真正的错误。

As far as reporting this to adobe through their bug tracking system, I guess if I want to wait several months for it to be fixed. I reported another genuine bug over a year ago that was never fixed.

但是,在考察其来源$ C ​​$ C如你所说 - 。可能是我最好的选择。

But examining their source code as you suggested - probably my best bet.