Anyone know how to grab the values from a running AS3 file and put them into a javascript function on the html page?

I know how to initiate js functions with the ExternalInterface but not sure how to push a variable out.

What i am using this for is an MP3 player that i developed. I want to pass the variables for the "current track" and "if the player is playing". I just dont know how to begin making the swf pass out its variables

thanks for any help

will