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

Actionscript - load variable from external .txt

 
0
  #1
Nov 19th, 2008
I am trying to write a script in flash that takes variables ( a list of movies that I wish to be played ) and loads them into the movie.

I don't have much code written for this but here is what I have in the first and only frame:

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. loadVariablesNum("variables.txt", 0);
  2.  
  3. loadMovie(var1, 0);

in the variables.txt file I have this:

var1="movie.swf"

I don't get an error when I run the file but I also don't get my movie clip to play either. Also, I tried to use "trace var1;" just to see if my variable is being correctly set, and it returns a syntax error.
I tried substituting the var1 in the actionscript with the actual movie name and the clip plays.
Reply With Quote