ASFunction send and receiving data?

I wanted to know if this is possible. I have a html file that will have a few var stored in it with javascript…Just wanted to know if flash and get these values, and maybe send them back??? Is this possible??? I know it can be done but I can only use Javascript and flash…