How can I create something like this

Hi… I’m fairly new to scripting, although I know falsh fairly well.

I came across this movie player on

If you watch a video, you can click on the small envelope button to “share” the video with a friend. Basically, a box pops up, where you enter information, your email, your friend’s, and it sends an email to that friend with the url link. How can I create something similar?