Skip to main content
Participant
December 4, 2008
Question

CursorManagerImpl overLink

  • December 4, 2008
  • 1 reply
  • 533 views
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
This topic has been closed for replies.

1 reply

Participating Frequently
December 10, 2008
<div class=Section1><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'>Lots of properties are private or mx_internal because we didn&#8217;t<br />want to commit to maintaining the API going forward.  I can&#8217;t think of a way to<br />do what you want in FP9<o:p></o:p></span></p><br /><br /><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";<br />color:#1F497D'><o:p> </o:p></span></p><br /><br /><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><br /><br /><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span<br />style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Thomas Fowler<br />[mailto:member@adobeforums.com] <br><br /><b>Sent:</b> Thursday, December 04, 2008 2:58 PM<br><br /><b>To:</b> flexsdk-dev@adobeforums.com<br><br /><b>Subject:</b> CursorManagerImpl overLink<o:p></o:p></span></p><br /><br /></div><br /><br /><p class=MsoNormal><o:p> </o:p></p><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>A new discussion was started by<br />Thomas Fowler in <br><br /><br><br /><b>Developers</b> --<br><br />  CursorManagerImpl overLink<br><br /><br><br />Hi All- <br><br /><br><br />I had just a general question regarding the private overLink property of the<br />CursorManagerImpl. I have a use case where I need to determine what system<br />cursor is being displayed when/if a user mouses over a particular component.<br />For instance, if a user mouses over an anchor tag inside of a Text component's<br />htmlText property, I would like to know if the hand cursor is being displayed<br />at that moment. I have, so far, been unsuccessful in finding a way to do this<br />in Flex 3 for Flash Player 9.0.124.0 (I have seen there are static properties<br />available in Flash Player 10 but we're not yet targeting it for our users). My<br />question is, why is the overLink a private member as opposed to protected or<br />public? The only reason I could think of as to why this was done is for<br />security reasons; more than likely surrounding XSS attacks etc. <br><br /><br><br />Here's a bug in the JIRA which is somewhat related to this: <br><br /><br><br /><a href="https://bugs.adobe.com/jira/browse/FP-652">https://bug!<br />s.adobe.com/jira/browse/FP-652</a> <br><br /><br><br />The reason I want know which cursor is being displayed is because I want to be<br />able to toggle the selectable property of the Text component when the user<br />mouses over or mouses out of a particular area. In this case, if the user<br />mouses over any text or html element which does *not* display the hand cursor,<br />I want to set the selectable property to false. Conversely, if the user mouses<br />over an anchor tag, I want to set selectable to true so the TextEvent will<br />dispatch correctly from the Text component if the user decides to click the<br />link. The reason I'm doing this is because sometimes Text components get a<br />little wonky when their text is highlighted/selected and the user drags the<br />mouse up/down while highlighting/selecting, thus producing an auto-scroll<br />effect on the text or htmlText. I don't particularly mind this 'side effect'<br />but the powers-that-be do. Also, if one were trying to prevent content from<br />being copied etc. but still wa! nted to include a link, they would run into the<br />same issue. <br><br />Do es anyone have any insight on this issue or any history as to why this<br />particular property is inaccessible? I'd like to know, not only for this issue<br />but just out of curiosity. <br><br /><br><br />Thanks, <br><br /><br><br />Thomas <o:p></o:p></p><br /><br /><div class=MsoNormal><br /><br /><hr size=2 width=200 style='width:150.0pt' align=left><br /><br /></div><br /><br /><p class=MsoNormal style='margin-bottom:12.0pt'>View/reply at <a<br />href="http://www.adobeforums.com/webx?13@@.59b72f90">CursorManagerImpl overLink</a><br><br />Replies by email are OK.<br><br />Use the <a<br />href="http://www.adobeforums.com/webx?280@@.59b72f90!folder=.3c060fa3">unsubscribe</a><br />form to cancel your email subscription.<o:p></o:p></p><br /><br /></div>
Participant
December 11, 2008
Thanks Alex for the reply. This issue is not by any means a deal breaker, but I was just curious if there was a way to achieve what I wanted. So, thanks for the answer.

Thanks,

Thomas