This content has been marked as final. Show 4 replies
for flash to use data from a text file, the text file must be in a different format.
at a minimum it must start with the following line
If I understand what you're asking, you'll want to reformat your .txt file a bit (just slightly!) and use LoadVars to obtain those values.
1. bob.jpg, bob.flv -- now, if your pattern will be like this, you can simplify the process. (ie- no 1.bob.jpg wayne.flv)
flash sees text file variables like this:
the "&" symbol tells flash there is a new variable coming. Then you're just assigning values to variables. Looking at your example, you could do it one of two ways....
//doing it this way would force you to keep your files a little more organized, but it would probably pay off.
check out THIS. Its a simple tutorial that will show you how to import values into flash, and how to properly use them. If its too confusing, I can keep exlplaining here. :)
I thinks I can format my text anyway I need to. How to plug in the values is what I dont have a clue about
The link you sent seems to be broken.
whoops!! That will help you out a little bit with passing variables between flash and a text file. flash to a php doc is the same as flash to a text doc (so just ignore the php scripting in the tutorial).