Music player (how is this done)

here’s an example of the player i would like done

http://www.flashkit.com/loops/Ambient/Electronica/Wakajawa-Osnoff-4058/index.php

if u click where it says FLASHTRACK CONSOLE it plays the track right there and it is in sync with the music… plus the play and stop buttons swap on…u’ll know what i mean when u check it out…