# How to make button that saves file to disk

**URL:** <https://forum.kirupa.com/t/how-to-make-button-that-saves-file-to-disk/242572>\
**Category:** flash\
**Created:** [October 27, 2007, 7:38pm UTC](https://forum.kirupa.com/t/how-to-make-button-that-saves-file-to-disk/242572 "2007-10-27T19:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iSilkin](https://avatars.discourse-cdn.com/v4/letter/i/aca169/32.png) [@iSilkin](https://forum.kirupa.com/u/iSilkin)\
**Post date:** [October 27, 2007, 7:38pm UTC](https://forum.kirupa.com/t/how-to-make-button-that-saves-file-to-disk/242572/1 "2007-10-27T19:38:51Z")

</div>

Hi, everyone!  
Does anyone know what code to use to make a button on your website that lets a viewer  
save a file to his/her hard drive. It used to be as simple as getURL in actionscrip 2, but I have now idea how to do that in Actionscript 3.  
Any help would be great.
