Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 3.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
In our last release we had serious performance problems, which we traced back back to the weightiness of the Text and Label components. In order to solve the problem, we switched all of our text components to use UITextField components instead. This resulted in an average of 66% faster page render times.
The problem we're now running into is trying to get a hand cursor to show up on text that we want to be clickable. In order to use the buttonMode/useHandCursor flags we would have to throw out large parts of our performance enhancements, as the buttonMode/useHandCursor flags only exist on much heavier components.
We also tried using <a> tags in our UITextField's htmlText property, and while this gets the hand cursor to show, it also blows away our custom context menus, since flash adds its own context menus for <a> tags w/ options for "copy url", "open in new window",etc...
The last thing we tried was cloning the hand cursors for mac & windows, and loading them using CursorManager.setCursor(), but even when we drew these as vectors, the performance was unacceptable.
What I propose is that CursorManager have some kind of "getSystemCursor(systemCursorId:int)" static method that can be used to retrieve the class necessary to pass to setCursor(). This would be combined with a set of static constants representing each of the available system cursors (to pass to getSystemCursor()).