How to play youtube movies inside my flash?

hey all,

after a while of searching i still despared to find out how to play youtoube movies inside my flash.

I notice there is a as2 script that caputure the rigth url to load the flv inside my own flash? or a php code that filter out the right flv?

anyhelp?