I am trying to figure out a way I can track user activity on a flash website (coded in actionscript) using a javascript tracking code.

The tracking code will track all the user activity such as what pages they visit and how long they are on each page and whether or not they have filled out a form etc...

Firstly - Is it possible, I only have experience in tracking Html websites and I have never really coded in actionscript before.

Secondly - How would I go about doing this?