Try calling validateNow() on the parent after changing the width of the left child.
- Gordon ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl Sent: Monday, June 23, 2008 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting width doesn't resize component immediately I have a custom component I will call the parent with 2 side by side children. The left child has a width of 200 and the right child has a width of 800 and parent width == 1000. On a mouse click event I change the width of the left child to 980. I then start an animation of the right child that moves from width of 800 to 20 (moves to the right). Sometimes the animation of the right child finishes before the width of the left child executes. How do I force the left child resize to happen first? I do a callLater to start the animation of the right child after setting the width of the left child like this: leftChild.width = 980; callLater(rightChild.startAnimation); I have tried calling leftChild.invalidateDisplayList() but it doesn't help.