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 (displayObject) {
throw new Error("Why!?!");
}
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com