• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • 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?
1 Solution
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;


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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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