Embedded as2 swf not writing to txt file!

I have a project built in CS4 using AS3 which has an embedded AS2 Space Invaders game in one of the sections.

The game reads/writes its high scores to/from a text file.

Every thing works well, but the game (when embedded) can only read, and not write.

When I publish the AS2 game separately, then place BOTH movies on a single html page, the independent game reads/writes fine, but the game within the main movie doesn’t write.

Am I trying to achieve the impossible? It seems strange that the AS2 movie has no problem running and performing all the various functions EXCEPT writing out to the text file.

Please help!!! Many thanks in advance!!