RE: [flexcoders] Flex2: watch/unwatch AS3 solution to track component "enabled" property
You should file a bug for us to make the 'enabled' property bindable. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Blazejewicz Sent: Thursday, March 09, 2006 4:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: watch/unwatch AS3 solution to track component "enabled" property Hello everyone, I'm looking for solution to watch changes in "enabled" property in component's parent container, Scenario: now I want to change state within "MyComp" custom component when "enabled" property of any container changes (e.g. to stop sounds in MyComp), "MyComp" is added at runtime so I cannot use states or bindings (which do not work with enabled), I've tried with ObjectProxy ObjectEvent.CHANGE but can't do much with that to achieve something that I can do with watch/unwatch in AS1/AS2, does someone know solution? for a moment I'm adding listeners that watch for drawing events in component parents to reflect changes, not nice but works, thanx in advance, regards, Peter Blazejewicz -- 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 -- 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/
Re: [flexcoders] Flex2: watch/unwatch AS3 solution to track component "enabled" property
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: > > > > > > > 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. `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/
[flexcoders] Flex2: watch/unwatch AS3 solution to track component "enabled" property
Hello everyone, I'm looking for solution to watch changes in "enabled" property in component's parent container, Scenario: now I want to change state within "MyComp" custom component when "enabled" property of any container changes (e.g. to stop sounds in MyComp), "MyComp" is added at runtime so I cannot use states or bindings (which do not work with enabled), I've tried with ObjectProxy ObjectEvent.CHANGE but can't do much with that to achieve something that I can do with watch/unwatch in AS1/AS2, does someone know solution? for a moment I'm adding listeners that watch for drawing events in component parents to reflect changes, not nice but works, thanx in advance, regards, Peter Blazejewicz -- 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/