Flex Component Lifecycle: validateNow, validateDisplayList, invalidateDisplalList, commitProperties, etc.

I am expanding VBox to create a calendar component. Which method should I override to add code for drawing? What is the difference between all of these methods? Is there something I have to put in each, or is there a specific method that I can just override, add my drawing code and make it work?

Thanks!

+3
source share
5 answers

This white paper is perhaps the best source of information I have seen on this subject.

+9
source

Deepa MAX 2008 - . , Flex 3.

+2

:

http://maohao.wordpress.com/2009/02/02/6-steps-in-creating-custom-uicomponent-in-flex-halo-framework/

, , updateDisplayList() invalidateDisplayList() ; , commitProperties()/invalidateProperties(). , measure() invalidateSize().

+1

updateDisplayList UIComponent . unscaledWidth unscaledHeight .

+1

From Adobe Flex 3 Live Docs The advanced Visual ActionScript components in ActionScript are a great source.

0
source

Source: https://habr.com/ru/post/1721921/


All Articles