Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

paste in the contents of a txt file

Posted on 2006-11-15
1
Medium Priority
?
223 Views
Last Modified: 2010-04-03
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
Comment
Question by:COwebmaster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
muxxter earned 2000 total points
ID: 17950510
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question