memory - Flex viewstack keeps redrawing invisible child, how to fix? -


Status: I have found a viewstack with 2 children (both types of Panel ). Application from child 1 to SelectedChild . Starts with

With one click on a button, the child has 2 selected children, after that, I am the 1 child selected child.

When I click the Redraw field in the flash player , I can see that the child is being repeated all the time (some things in my child ) How can I prevent it from happening? Or is it really invisible (in this case child 2) can be done only with the removal of the child?

Why would I want to receive it? There will be too much data (FLV, image etc.) in children 2 and when it is cached as it happens now, it will slow down my application.

A large source of inefficiency in the flash can come from invisible objects on your display list. Not only do they cause redrape area refresh ("red rectangles"), whenever they need to cross the display list tree, they impose CPU penalties on flash processing. Mouseovers are particularly expensive, even if you do not have any mouse events listeners, when the display list is bigger. Any display list containing some thousand items can start to feel pain.

The long story short, sometimes the exhibition shows that you write your own "Visibility Manager" as an alternative to parents' hierarchy DisplayObject.visible toggling.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -