Another advantage of beads, as I see it, is that they can be modular. The way
I implemented DisableBead it does the minimum, which is to change
style.pointerEvents to 'none', but it also dispatches a 'disabledChange'
event on the strand. The latter allows an additional bead, e.g. BlurBead, to
listen to 'disabledChanged' and change opacity. Then you get the default
behavior, which is to disable pointer events, and an added effect where
necessary, reusing code.

To minimize verboseness I suppose you could have 'DisableAndBlurBead' which
adds 'DisableBead' and 'BlurBead'. Of course, baking it in in advance is the
least verbose and could work for a non-basic component set.




--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-When-to-Bead-was-Re-FlexJS-enabled-property-tp56044p56049.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to