Thursday, August 28, 2008

sacred knowledge on component sizing in Flex:

(5:52:03 PM) Michael VanDaniker: if you set width explicitly, explicitWidth gets set :)
(5:52:14 PM) Michael VanDaniker: but if you use percentage widths
(5:52:46 PM) Michael VanDaniker: or just let the child figure out its own width and let the parent do the sizing, then explicitWidth will not get set
(5:53:40 PM) Darya Filippova: can yu elaborate on teh last sentence plz?
(5:55:32 PM) Michael VanDaniker: if you create a component, say a Label, and don't set it's width and height, measure will get called. in the case of the Label, this will set measuredWidth and measuredHeight based on the text measurements. when you access myLabel.width you'll get the measuredWidth back. if you do set the width, you'll get that width instead
(5:55:52 PM) Michael VanDaniker: the explicitWidth
(5:57:47 PM) Michael VanDaniker: basically, component have an idea of what their sizes should be (measuredWidth and measuredHeight), but you can override that (explicitWidth and explicitHeight). the setters for width and height act as proxies for explicitWidth and explicitHeight while the getters return measuredWidth and measuredHeight if you haven't explicitly set the width and height
(5:57:47 PM) Darya Filippova: really
(5:58:18 PM) Darya Filippova: alright, I'll work with this knowledge
(5:58:44 PM) Darya Filippova: did you learn this from source code?

Monday, August 18, 2008

component chooser:

-guides you through series of questions that help you narrow down your selection of an appropriate component for the dataset

Wednesday, August 13, 2008