sorry if this question is too basic but i can´t seem to find how to do it.

I need to do what youtube does when they give you an embed code. For instance:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/V6x3Ipo2IXI"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/V6x3Ipo2IXI" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>

How does "http://www.youtube.com/v/V6x3Ipo2IXI" end up being a flash player with information about the movie it has to play?

Thanks. Ed.