Solved

Loading variables from a text file

Posted on 2000-04-13
8
149 Views
Last Modified: 2010-04-03
I have done this many times over but this time I can't seem to get it to work.

Here's what I have...

I have a file called test.txt with the contents below:

?Name=Dan

In the first frame of the movie the actionscript reads

Load Variables ("test.txt", 1)

I would figure that the text field called Name I have in my movie would then be filled with the name "Dan".

Can anybody give me a clue here?

-D
0
Comment
Question by:SuperMario
[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
8 Comments
 
LVL 4

Expert Comment

by:RoyKruyshaar
ID: 2718601
Hi SuperMario,

The 1 must be a 0, unless you work with several levels.
Good Luck

Roy
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2719202
Oops...

My bad, Roy, I should have left out the question mark. It still works for me when I use a 1 because the variable itself is within a movie clip.

Sorry mon, fixed it myself.

-D
0
 
LVL 4

Accepted Solution

by:
RoyKruyshaar earned 50 total points
ID: 2719229
When you use more variables, you should use a '&' between them.
Do you have more questions about this, because your question is still standing in de question area?
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 3

Author Comment

by:SuperMario
ID: 2719238
Well, I've done this many times before and it's always been through a query string in a script which starts with ? but from a text file it shouldn't have a ? there.

Thanks anyway, Roy, I appreciate it!

-Dan
0
 
LVL 7

Expert Comment

by:ssdesign
ID: 2723585
Edit you movie in the following manner

Name the text field box ..... name

rename the text file as ...... name.txt

In the action to load variable write

LoadVariables("name.txt",0)

In the text file named name.txt begin the text you want to load with name=yourtext
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2724541
Actually...
I already fixed it, see the above comment?

Sorry... this question should be closed.
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2758248
You will have to ask that this question be deleted from the folks in the customer service area of this site.
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2802745
Thanks for the level tip, Roy. =)

-D
0

Featured Post

Independent Software Vendors: 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

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

734 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