Passing vars to flash in PhP

We have “hundreds” of artists. (music)
Each artist has his own dedicated page.
We write ONE page in PhP as a template for all artists.
PhP builds the page using just a reference (ARef) and send the HTML.
On the page is an embedded flash player.
The player must load a song extract located in …/ARef/
How do I pass ARef parameter to the embedded flash 8?

Could not find a way in this forum, nor in the help…
Any idea would be much appreciated.