Flash:CS3, Databases and Javascript

I need to know if this is at all possible:

Can I take a value in flash - output it into html and using Javascript pass that value from one page to another?

Or can I pass information from flash to a database using Javascript??

Or maybe store it in one external page?