Hi, i was and i am still running into problems with sizing and placing components in skins programmatically for spark ActionScript and MXML/ActionScript components.
I want to initialize the components in MXML and size and position the children in the component's (a component's skin) updateDisplayList, although this might be a bit of an uncommon approach. I was implementing the positioning via UIComponent.move, which i realized was the wrong approach. After just setting the x and y properties, i did some research and stumbled across the ILayoutElement and its methods like setLayoutBoundsPosition and corresponding methods to modify the skin's display list. But somehow the group, which contains the children, does not propagate its new size up to its parent. I use the updateComplete event to invalidate the group's size and force the layout to be calculated properly a last time. The view looks as expected. But i don't think that invalidating a component "a last time" after an updateComplete event was dispatched is wrong. Now, what is the right approach for the following task: implementing a skinnable component and a corresponding skin. The skin creates the skin parts in MXML in a Group (id="contentGroup") but the layout is calculated within the skin's updateDisplayList method. I only found one useful article on the web, which is not really a lot of information at all (http://www.adobe.com/devnet/flex/articles/spark_layouts_print.html). Best regards.

