1 Reply Latest reply on Jul 30, 2009 5:15 AM by TeotiGraphix

    Flex 4 :: set skin class/factory style before createChildren()

    TeotiGraphix Level 3

      Hi,

       

      I'm noticing that detachSkin() and attachSkin() are being called during commitProperties() after createChildren() has created a skin declared with skinFactory or skinClass in a Flex.Event.PREINITIALIZE handler.

       

      I know this is a bug but, don't know how you guys want to fix it. From what I see the easiest way to do this is place skinChanged = false in createChildren() like you have done in commitProperties().

       

      Doing the above would then prevent the pass in commitProperties() of running again. The flag skinChanged is getting set true in the pre styleChanged() call before the stylesInitialized() call.

       

      Mike

       

      http://www.teotigraphix.com