I like to set the props / layout of the component/application by overriding updateDisplayList();
However, I experience a drop of rendering speed in Flex application when the application is developed into a larger size. And I discover that the key issue was using "setStyle" everytime when the updateDisplayList() is executed.
Actually the setStyle just need to apply once after the application is initialized. So the problem can be solved after I added _init flag into the application and run the setStyle procedures only if the _init is true...
Thursday, April 17, 2008
Subscribe to:
Post Comments (Atom)
3 comments:
If you look into the source of most of the components... most of the updatable variables have a _xyzChanged set on the setter and on the commitProperties method they check the _xyzChanged and if true set the style again. Might be something to check out, and might be a solution for you.
P.S. http://www.adobe.com/devnet/flex/articles/client_perf_09.html ;)
Thanks campbell, i will look into it~ ^_^
Post a Comment