So most other properties that you cared about were working otherwise?
I'll file an enhancement for having the enabled property dispatch an
event when it is changed.

Matt

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Blazejewicz
Sent: Thursday, March 09, 2006 7:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex2: watch/unwatch AS3 solution to track
component "enabled" property

Hello Manish,

many thanx for input,
yes, that was something I had tried already,
but I'm working on custom component that is simply designed for
drag&drop into any other container, after instantiation it scans its
parents down to Application.application and listens for events that
should "disable" it if any of parent is disabled (and opposite),
hidden or scaled to null dimensions,
I wanted to made it transparently - so end user does not have to add
code to containers, "enabled" is the last property I have trouble with
(as posted I've made workaround listening for drawing events in
containers but I'm really missing "enabled" watchers from AS2
components),

regards,
Peter

--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:

> 
> 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



 




--
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/
 


Reply via email to