This content has been marked as final. Show 5 replies
to get a particular item from a list, you need to use square brackets, like this:
so in your code, perhaps it should be:
If this doesn't help, you can try debugging by using the 'put' statement to output the contents of your variables to the message window. Eg, you might want to add these lines to your 'writedata' handler
This will display the contents of those variables in the message window as the program runs.
hope this helps!
Actually, I just noticed that your variable "mReadLine" isn't defined at all. That's going to be a problem. Maybe instead of:
put gSourDataList(mReadLine) into theText
put gSourDataList[ i ] into theText
(I had to add spaces around the 'i' to stop it from being interpreted as an 'italic' tag by this forum!)
What version of Director are you working with? I only vaguely remember
that some Xtras used methods that started with "m".
You have a HALT command at the end of your startMovie function. That's
going to quit your movie, is that what you want to have happen?
If all of these functions are written to the same movie script window,
then you don't need to declare the global variables over and over again
in each function. Declare them at the top of the window once, and then
use them as you like in each function.
Can you describe what it is that you want to accomplish with this code?
Your function getFileNameList is only going to give you one item in
gSourNameList, so it doesn't need to be a list. The function getFileName
doesn't need a repeat loop because gSourNameList will only ever have one
item in it. FileXtra4 can much more efficiently find a file with a
specific extension for you.
Adobe Community Expert
Thank's Rob: I'm using 5.0 (I know, very old).
I use the HALT command while authoring, to stop at a specific place.
Those other bugs you've noticed? I seen them just after posting my question.
I'm attemping to write a program that will store any number of text files into one large text file.
About the globals, do you mean to put all of the functions into the StartMovie handler?