Spark layouts support "includeInLayout" which might help you add a child
"anywhere".  Is that what you are looking for?

On 11/6/13 2:43 AM, "Jan Flyborg" <[email protected]> wrote:

>Hi,
>
>I have implemented my own classes to draw notification bubbles on certain
>components (mostly buttons) to guide my users through a setup procedure.
>This code has been in production for a while, but I am wondering if I am
>doing it the correct way.
>
>The way I implemented it was to add an extra component (overlay) that lies
>(with the depth property set to a large value) on top of all other
>DisplayObjects and which occupies the whole display port. This branch of
>the DisplayList serves as the parent to all my notification bubbles, so I
>have to transform all coordinates of the bubbles (local -> global ->
>local)
>to place them at the correct places.
>
>This works, but I would have been better if I could place the bubbles
>directly on top of the buttons without having to add this extra overlay,
>but since the buttons have been added to parents with a layout managers,
>it
>would probably not be possible to size them with absolute coordinates, or
>am I wrong?
>
>What is the correct way to draw components on top of other components
>without paying regards to layout? Can a child be drawn on top of a parent
>or is an overlay solution the only feasible way to accomplish this?
>
>Best Regards
>    //Jan Flyborg

Reply via email to