Try/catch simple question

Hi,

Can you pick up an undefined error with a catch statement? I have the code below, but it doesn’t seem to be handling the error:


try {
    test_txt.tedxt = "testing";
}
catch (e) {
    trace("caught error");
}

The error is being caught, but not by my catch block.

thanks,
Marcus.