On 3/10/06, Peter Blazejewicz <[EMAIL PROTECTED]> wrote: > I'm looking for solution to watch changes in "enabled" property in > component's parent container, > > Scenario: > <mx:Panel id="parent2"> > <mx:VBox id="parent1"> > <view:MyComp /> > </mx:VBox> > </mx:Panel> > > now I want to change state within "MyComp" custom component when > "enabled" property of any container changes (e.g. to stop sounds in > MyComp),
Well, how about this: instead of directly setting the enable property of the parent container, control it through another bindable variable in you app. <Panel enabled="{panelEnabled}"> <MyComp /> </Panel> `panelEnabled` is a bindable variable in your app. In the setter of that variable, you can dispatch a "change event" that your MyComp can also listen for and stop its sound. Manish -- 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/ <*> 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/