This has been working for weeks on but suddenly, each time I try to export a
swf from my flas, Flash would crash midway through the compile.

I've isolated the cause to this line of code:

import mx.data.components.DataSet;

I'm working on Mac OS 10.3.7 and Flash MX 2004 Pro version 7.2.

As I say, all was working fine until today. The system crash report logs shows
this:

Exception: EXC_BAD_ACCESS (0x0001)

Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004

Can anyone help?