• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

paste in the contents of a txt file

Hi.  Is there a way with the click of a button, paste in the contents of a txt file into an input field that is stored in the same directory as the dwf?
0
COwebmaster
Asked:
COwebmaster
1 Solution
 
muxxterCommented:
Hi COwebmaster.

Absolutely you can. It's not exactly simple, but it can be done:

my_btn.onRelease = function() {
    var my_lv:LoadVars = new LoadVars();

    my_lv.onLoad = function(success:Boolean) {
        my_txt.text = my_lv;
    }

    my_lv.load("<some_file>.txt");
}
...

This may look simple, but it actually a cheap hack. :-)
Let me know if this works or not for you, so I can give you more info.

Gav
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now