Importing a string variable to flash movie

Supposed situation:
Embed flash movie & a Real Player Plugin in a webpage.
Trying to completely control the Real Player Plugin using the Flash Movie for user interaction and let Javascript send all the requests to the RealPlayer Plugin(such as play, pause, stop, rewind, forward).

I know how to send a variable out of the Flash Movie by using the FSCommand to the JavaScript in the webpage. This allows me to control the RealPlayer plugin by play, pause, stop, and even which song to play.

Now the tricky thing is in the Flash Movie, how do I request and send information from the RealPlayer plugin to the Flash Movie in the webpage using Javascript? Such as the the Length of the song, the position in time of play, and other Statistics so I can display them all in the Flash movie.

Basically how can I Send Data from the Webpage Into the FLASH MOVIE?

Any suggestions.