# Open a file (open file dialog) and load content into a textfield (AS2)

**URL:** <https://forum.kirupa.com/t/open-a-file-open-file-dialog-and-load-content-into-a-textfield-as2/297504>\
**Category:** flash\
**Created:** [October 3, 2009, 1:49pm UTC](https://forum.kirupa.com/t/open-a-file-open-file-dialog-and-load-content-into-a-textfield-as2/297504 "2009-10-03T13:49:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silverfisken](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@Silverfisken](https://forum.kirupa.com/u/Silverfisken)\
**Post date:** [October 3, 2009, 1:49pm UTC](https://forum.kirupa.com/t/open-a-file-open-file-dialog-and-load-content-into-a-textfield-as2/297504/1 "2009-10-03T13:49:59Z")

</div>

Hi,

How can I have a button (when clicked) opens up a dialog where I choose a file on my local computer or server and then open the content of the file into a textfield?

MAC OS X Intel system
