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; > } > ... > <mx:Button id="myButton" label="{_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/