Solved

paste in the contents of a txt file

Posted on 2006-11-15
1
186 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
1 Comment
 
LVL 7

Accepted Solution

by:
muxxter earned 500 total points
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now