How can I trigger a transition effect when a child control is added or removed in flex?
Posted
by Jason Towne
on Stack Overflow
See other posts from Stack Overflow
or by Jason Towne
Published on 2010-03-03T16:07:39Z
Indexed on
2010/03/16
18:11 UTC
Read the original article
Hit count: 231
I've got a custom component that has children components dynamically added and removed to it depending on what button the user clicks. What I would like to do is trigger a transition effect that moves the child component onto the stage when it's added and then moves it off when it's removed.
Does anyone have a good example on how to accomplish this?
Edit: I figured it out and left my solution below. I hope it helps someone else!
© Stack Overflow or respective owner