Export/Recompiling SWF

I would like to have a button on my movie that will just download the loaded movie to the users system. It’s an swf movie. I remember seeing an action script function that did something similar, but it was only for as1 or 2.

I’ve come up with some possible solutions, but don’t know how, or if they’ll work.
one is to export the playing swf to an fla in actionscript, then convert that to a new swf to download. (all in AS)

another is if there is someway in php to preload the entire movie and somehow using php compress it for download.

I’m actually pretty clueless, so any help would be great.

Thanks