swapChildren fix in Flex 3

Feb 14

I’m working on a project right now and swapChildren is just not working as expected.  Looked around a bit, and I just decided to remove the two children and add copies of them instead:


var tmpThis:Canvas= EV.target as Canvas;
var tmpHighest:Canvas= highestPanel;

removeChild (highestPanel);
removeChild (EV.target as Canvas);

addChild(tmpHighest);
addChild(tmpThis);

Leave a Reply