this problem is when i try to load a textfile w. variable
first, when i clicked the button, and try to trace the loaded
text, its shows its "undefined", but when i try clicking once more,
it works... whats the problem? im really confused... please help!
PS:if you got a good tutorial about textfile and string
manipulation, please send me some links... thanks!
Not 100% sure this is the case but it may be because you are
loading the file and running the trace at the same time so the text
is not loaded when the trace is called. The second time you click
the text is loaded from the previous call and so the trace works.
Try stopping your playhead at frame 1 of your timeline untill
the file is loaded then moving to frame 2 where your button
appears. This way you can be sure that the vars are all available
when the button is clicked.
I would also recomend looking into using XML (if it fits your
project) instead of text files as they tend to be a lot more
dependable and more usable