View Full Version : Flash with text file
whatever
06-13-2005, 05:27 PM
I have a flash movie that draws data from a separate text file. When the flash movie is compiled into the .exe it does not read the uncompiled text file. Is there a way to import the text file into the project so that it will be a part of the .exe file and readable by the flash movie?
Corey
06-13-2005, 08:36 PM
Hi. If you put your flash movie and your text file together in the same folder, then make sure your flash movie is not adding a path to the file reference, i.e. simply refer to "yourfile.txt" there should be no problem because when the .exe is extracted, the files are still in place in relation to the file reference. Hope that helps. :)
whatever
06-14-2005, 01:08 PM
I had it set up that way and it wasn't working. The flash works fine on the comp and the web as long as the .txt file is in the same folder as the .swf file but not in the CD project.
Also, I have noticed that with flash movies comprising more than one frame, the Indigo Rose program appears to ignore simple frame commands such as 'stop' and will load the movie on the last frame of the movie. If an embedded movie has an alpha property of "0" It will show up in Auto Play as an alpha of "100"
I have disabled the auto start and loop setting for the flash through the Indigo Rose software and I've added the following to both the flash project properties and the page properties with no results:
result = TextFile.ReadToString("flower.txt");
Flash.Stop("flower");
What am I missing here? Or does this software only work with simple flash loops and not the interactive movies? I am trying to load puzzles whereby the viewer has to input text or click on a button in order to get a particular result and only the simplest one frame movies will work right on the CD. =P
Corey
06-14-2005, 01:49 PM
I had it set up that way and it wasn't working.
Not sure then, works OK on my end. If you want to post your project I can have a look for you.
Also, I have noticed that with flash movies comprising more than one frame, the Indigo Rose program appears to ignore simple frame commands such as 'stop' and will load the movie on the last frame of the movie.
I've never observed that, they always seem to work fine on my end. Again if you wish to post an example I'll have a look.
If an embedded movie has an alpha property of "0" It will show up in Auto Play as an alpha of "100"
I've never observed that one either, again, it works fine on my end. If you wish to post an example I'll have a look. :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.