Solved

problem with Text file.

Posted on 2000-03-02
8
130 Views
Last Modified: 2012-05-04
I have created a game in flash which starts by using an action script to load some variables which are then put into fields which are displayed on the screen.

I use the Load variables command. When I try the shockwave movie on my test machine it works perfectly, but when I upload the shockwave and the file to the server the text does not appear, it is as though they are not loaded.

Can anyone help with this.
0
Comment
Question by:RICHARDH
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 3

Expert Comment

by:SuperMario
ID: 2578420
Hmm, all I can think of is make sure your directories are right - have the text file in the same directory on the server as the flash movie?

-DAn
0
 

Author Comment

by:RICHARDH
ID: 2581796
This question has a deletion request Pending
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2581845
This question no longer is pending deletion
0
 
LVL 3

Expert Comment

by:SuperMario
ID: 2581846
Well please tell me if I'm right...
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Expert Comment

by:coopa
ID: 2616328
You may want to check the case of the file as well.. In some instances hello.txt may work but Hello.TXT may not.

I have had some pretty hard to solve problems myself recently, and i found that the easiest way to solve them is to write a small test application in flash with all of the variables exposed.
0
 
LVL 4

Accepted Solution

by:
RoyKruyshaar earned 50 total points
ID: 2626866
I the reason can be that the variableFile isn't totally loaded when the movie assign the textfields.
When you make a last variable in your textfile like &test=TotallyLoaded or something like that, and than in your movie you check 'test eq 'TotallyLoaded', if not, wait until the variable is loaded.
The case-sensitive thing from coopa is also a good one!
0
 
LVL 2

Expert Comment

by:coopa
ID: 2734510
Well RICHARDH ?
0
 
LVL 4

Expert Comment

by:RoyKruyshaar
ID: 2775342
Well Richard, are you on vacation or what?

Greetings

Roy
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
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.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

757 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

19 Experts available now in Live!

Get 1:1 Help Now