0 Replies Latest reply on Mar 24, 2008 5:43 PM by Bryan Dresselhaus

    Best method for UIComponent Initialization?

    Bryan Dresselhaus Level 1
      I have a custom class that extends Panel and I would like to get input on the best method for initializing custom properties upon object creation. I currently create an event handler for the FlexEvent.CREATION_COMPLETE event and assign my properties then.

      However, I'd like to slim my code down. Is there a place I can initialize properties without having to import events? I tried overriding some protected methods such as commitProperties, but discovered this method gets called again by Flex when effects are done playing on the UIComponent. I don't want to initialize my custom parameters again because this is essentially reseting any interaction the user did with it.

      Is there another super method I can use to initialize my method rather than use CREATION_COMPLETE events?