flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kessler CTR Mark J <mark.kessler....@usmc.mil>
Subject RE: Different behavior between mx and spark
Date Thu, 17 Jul 2014 10:32:53 GMT
    I believe it made for less processing / runtime overhead.  But I agree there are situations
you would still like to be able to use events or at least a simple toolTip text.

    I know a few people that created their own child of say something like a button.  They
then override the enabled property and use their own enabled Boolean to keep track of it.
 Then they make the component look like it's disabled but changing the skin state.  Override
any event handlers they don't want firing.


-----Original Message-----
From: João Fernandes [mailto:joaopedromartinsfernandes@gmail.com]
Sent: Thursday, July 17, 2014 5:52 AM
To: dev@flex.apache.org
Subject: Different behavior between mx and spark

Hi, something that has bugging me is that skinnable components behave
differently from mx conter part when the object has enabled = false.
In MX all components still respond to mouseEvents while skinnable won't
because at the skinnableComponent level we have this

    override public function set enabled(value:Boolean):void
        super.enabled = value;

        // If enabled, reset the mouseChildren, mouseEnabled to the
        // set explicit value, otherwise disable mouse interaction.
        super.mouseChildren = value ? _explicitMouseChildren : false;
        super.mouseEnabled  = value ? _explicitMouseEnabled  : false;

I plan to implement a similar mx behavior but keeping the current behavior
as the default.

Before I start doing anything, is there any reason for this difference in


João Fernandes
View raw message