If you're doing this in the same frame, the fact that the object is no
longer on the displaylist may not have been updated yet.
Try moving the code throwing the error into the childRemove event.
Daniel Thompson wrote:
Why will the following error be thrown? Shouldn't the displayObject be
Why will the following error be thrown? Shouldn't the displayObject be null?
try {
removeChild(getChildByName(background));
} catch (typeError:TypeError) {
// do nothing
}
var displayObject:DisplayObject = getChildByName(background);
if
2 matches
Mail list logo