Flash file is only used to circumvent the browsers' security settings which do not allow javascript to access the 'clipboard' directly (which is good imo). The only way known using javascript solely is by showing a prompt which instructs the user to copy the displayed link by pressing CTRL+C
and that's a bit besides the point.
Post suggestions here if you have any.