How to manipulate Javascript through ActionScript

How do you use Actionscript to control Javascript? (Maybe through FX Script?)

i think fscommand can do it for ya.

It depends on what is trying to be done. Can you be more specific?