Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

saving text input in variables for later use 1

Status
Not open for further replies.

flashbbeb

MIS
Joined
Mar 29, 2005
Messages
106
Location
US
I am creating a simulation where users enter data in text input fields, and should see what they entered later on (as in they should see what they entered in a movie clip that displays further in the presentation). How would I implement this without the use of an external text file and server side script?

Thanks!
 
If the data is to be used within the same session you can just store it in a variable.

If you need to retrieve the data at later time you can use SharedObject.

Kenneth Kawamoto
 
Actually, I looked at an old post where it happened to be you who recommended creating an array of names. From there, I just created dynamic text fields in a later keyframe that brought in the inputted text data. I'll give the Shared Objects method a try, too.

So double thanks for your help on that one!


What I did:

var textitems = [];
stuff.text = new Array();

saveItems.onRelease = function() {
textitems[0] = userName;
textitems[1] = address;
textitems[2] = zip;
}

mover.onRelease = function() {
gotoAndStop("changed");
}

stop();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top