YouTube currently doesn't allow crossdomain call, which means that if a Flash app tries to fetch one of their pages, it will fail with a security error

To go around this issue, this Flash app uses a PHP stub file, which fetches the YouTube page and send it back to Flash.

More information on this post.