Код AS3:
private var sendWindowCont:SendWindowCont = new SendWindowCont(); //class field
if (contains(sendWindowCont)) removeChild(sendWindowCont);
else addChild(sendWindowCont);
// или в одну строчку:
contains(sendWindowCont) ? removeChild(sendWindowCont) : addChild(sendWindowCont);