Douglas, Thanks... So as a rule of thumb, add all children that I know I need up front and show/ hide them using visibility in e.g. onMouseOver/ Out.
Or set a dirty flag and then invalidateDisplayList(), then from within updateDisplayList(), check the dirty flags and addChild( x ) in there... cool. thanks! p.s. yeah I like it :) On 6 September 2011 20:35, Douglas Knudsen <douglasknud...@gmail.com> wrote: > ** > > > ze MX way, yes. So, um, I suggest you look at the visible property. > Adding the child once in createChildren() then managing the visible > property sounds better in the long run. If you really must add/remove the > button, I'd say use updateDisplayList(), a good place for adding/removing > dynamic children. > > There's a crap ton of info on the life cycle, here is one such source > > http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf68641-7ff0.html > > > Douglas Knudsen > http://www.cubicleman.com > this is my signature, like it? > > >