Question
CursorManagerImpl overLink
Hi All-
I had just a general question regarding the private overLink property of the CursorManagerImpl. I have a use case where I need to determine what system cursor is being displayed when/if a user mouses over a particular component. For instance, if a user mouses over an anchor tag inside of a Text component's htmlText property, I would like to know if the hand cursor is being displayed at that moment. I have, so far, been unsuccessful in finding a way to do this in Flex 3 for Flash Player 9.0.124.0 (I have seen there are static properties available in Flash Player 10 but we're not yet targeting it for our users). My question is, why is the overLink a private member as opposed to protected or public? The only reason I could think of as to why this was done is for security reasons; more than likely surrounding XSS attacks etc.
Here's a bug in the JIRA which is somewhat related to this:
https://bugs.adobe.com/jira/browse/FP-652
The reason I want know which cursor is being displayed is because I want to be able to toggle the selectable property of the Text component when the user mouses over or mouses out of a particular area. In this case, if the user mouses over any text or html element which does *not* display the hand cursor, I want to set the selectable property to false. Conversely, if the user mouses over an anchor tag, I want to set selectable to true so the TextEvent will dispatch correctly from the Text component if the user decides to click the link. The reason I'm doing this is because sometimes Text components get a little wonky when their text is highlighted/selected and the user drags the mouse up/down while highlighting/selecting, thus producing an auto-scroll effect on the text or htmlText. I don't particularly mind this 'side effect' but the powers-that-be do. Also, if one were trying to prevent content from being copied etc. but still wanted to include a link, they would run into the same issue.
Does anyone have any insight on this issue or any history as to why this particular property is inaccessible? I'd like to know, not only for this issue but just out of curiosity.
Thanks,
Thomas
I had just a general question regarding the private overLink property of the CursorManagerImpl. I have a use case where I need to determine what system cursor is being displayed when/if a user mouses over a particular component. For instance, if a user mouses over an anchor tag inside of a Text component's htmlText property, I would like to know if the hand cursor is being displayed at that moment. I have, so far, been unsuccessful in finding a way to do this in Flex 3 for Flash Player 9.0.124.0 (I have seen there are static properties available in Flash Player 10 but we're not yet targeting it for our users). My question is, why is the overLink a private member as opposed to protected or public? The only reason I could think of as to why this was done is for security reasons; more than likely surrounding XSS attacks etc.
Here's a bug in the JIRA which is somewhat related to this:
https://bugs.adobe.com/jira/browse/FP-652
The reason I want know which cursor is being displayed is because I want to be able to toggle the selectable property of the Text component when the user mouses over or mouses out of a particular area. In this case, if the user mouses over any text or html element which does *not* display the hand cursor, I want to set the selectable property to false. Conversely, if the user mouses over an anchor tag, I want to set selectable to true so the TextEvent will dispatch correctly from the Text component if the user decides to click the link. The reason I'm doing this is because sometimes Text components get a little wonky when their text is highlighted/selected and the user drags the mouse up/down while highlighting/selecting, thus producing an auto-scroll effect on the text or htmlText. I don't particularly mind this 'side effect' but the powers-that-be do. Also, if one were trying to prevent content from being copied etc. but still wanted to include a link, they would run into the same issue.
Does anyone have any insight on this issue or any history as to why this particular property is inaccessible? I'd like to know, not only for this issue but just out of curiosity.
Thanks,
Thomas
