Hi!

I managed to get Google analytics working on button clicks in koolmoves.

But what I now want to know is how to get it working on media player events.

this is how I got it working for a button named 'about' :


-----------------

about.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
ExternalInterface.call("pageTracker._trackPageview ",
"/about");
}

-------------------

It sends data to google analytics with the title "/about"


How can I also do this with media player events? my knowledge of AS3 is limited to cutting in pasting. I looked in the 'mediaPlayer API.txt' in API koolmoves folder, and I am still confused.


I want flash event data to send on these events:

-what item in playlist is played
-if item is stopped
-if item is completed

Cool thing about google analytics is that is gives a duration of time for each event (events are listed as 'pages'). So then I also know exactly what time during an mp3 or video someone has stopped it.

This is general information I would love to know, because I can also apply it to other analytics software.


any help would be appreciated

Dave