?
Solved

paste in the contents of a txt file

Posted on 2006-11-15
1
Medium Priority
?
221 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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. …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

801 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