If you have Flash 8 I would defenitly consider using the new class externalInterface.
Gives you a lot of posibilities to do js2as and as2js communication. Haven't used it much but what I did it seemed stabe.