View Single Post
Join Date: May 2008
Posts: 27
Reputation: xylude is an unknown quantity at this point 
Solved Threads: 0
xylude xylude is offline Offline
Light Poster

Re: Actionscript - load variable from external .txt

 
0
  #2
Nov 19th, 2008
ok, after reading some more I found that LoadVars is a bit better for what I am trying to do (I hope). It still isn't working, but under "debug" -> "list variables" I can see var1:"movie.swf" which means its at least loading the text file and seeing the string I need.

I can't seem to figure out why it won't play the movie though.

Here is my updated code if anyone can help.

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. movieData = new LoadVars();
  2. movieData.onLoad = getMovieData;
  3. movieData.load("variables.txt");
  4.  
  5. function getMovieData()
  6. {
  7. loadMovie(movieData.var1, 0);
  8. }
Reply With Quote