Re: [flexcoders] Re: Setting properties to children technique

2006-10-02 Thread Sergey Kovalyov
Also I have found that in case I use code-behind and children are
declared in MXML, their properties are accessible directly from setter
even in initialization time without null pointer exception. Is it
stable behaviour and could be used as a feature?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Re: Setting properties to children technique

2006-10-02 Thread Sergey Kovalyov
But if I have pure ActionScript component, where should I set binding?
In initialize() override after super.initialize() call?

On 9/29/06, Doug Lowder <[EMAIL PROTECTED]> wrote:
> Hi Sergey,
>
> Another idea is to get/set a variable instead of a property on a
> component, and then bind that component's property to the variable.
> Something like the following:
>
> private var _buttonLabel: String;
>
> public function get buttonLabel() : String {
>  return _buttonLabel;
> }
>
> public function set buttonLabel(buttonLabel : String) : void {
>  _buttonLabel = buttonLabel;
> }
> ...
> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/