flash - Flex canvas with many UIComponents, if one moved are others redrawn/reprocessed? -


I have a host named Canvas in the form of several UICmans, sometimes up to 1000 or 3000 items. It's okay for now, because they are not interactive.

But, according to the mouse movement I added a 'marker line' (a pixel wide UI component with colored background) in the canvas. When this UICM sponsorship is added to the host canvas and moves, then everything goes down under the crawl. i.

Do you think this might be why? Or how to avoid?

Each time you move the mouse, you're probably working < How to call / code> and updateDisplayList all those UIComponent s You can create those thousands of components with their neighbors to interact with their status and dimensions again.

Without looking at my code, I can not be very specific in recommending a solution, but you canvas with a transparent background on the which divides thousands of components, its Matches the dimension and location, and uses the marker to move the line.


Comments