Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-04-2009, 08:05 PM   #1
Registered User
Join Date: Mar 2009
Posts: 9
Default uicomponent overrides

Hello, I am just trying to understand the concepts behind overriding functions within custom components.
In many examples I see people override commitProperties, createChildren, measure etc.
However, I have not been using these and my custom components are working fine.
What are the actual reasons for using these overridden functions in custom components, and should I always be doing it ?

Thanks for any help.
fran1942 is offline   Reply With Quote
Old 09-04-2009, 09:37 PM   #2
Peter Cowling
quantum tunneler
Join Date: Sep 2008
Location: London, UK
Posts: 882

You can produce custom components without being involved directly in their production process. You can, instead, tell them what to do once they have already reached a point in that process. More information about the lifecycle here.
Peter Cowling is offline   Reply With Quote
Old 09-05-2009, 11:27 AM   #3
Registered User
Join Date: Aug 2009
Posts: 27

To add to what Peter already said, those functions are part of the Component Life Cycle. Each Flex component goes through several stages during its life. These stages have been divided into small functions, in order to optimize the efficiency of the component. The Flash Player works differently from other VM's. Thefefore, the way graphical components are managed is also very different.

A very detailed paper that goes into the Life Cycle can be found here http://www.developmentarc.com/site/w...cycle_v1.0.pdf

Here's a nice video that explains it in simpler terms, and also describes how the Flash Player works, and how that influced the design of Flex.

flexexplorer is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 07:35 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.