Somebody on the Adobe forums just pointed out that this has been fixed in version 3.4 of the Flex SDK. I was using an older version still. If anybody else encounters this problem make sure you have 3.4 or later.