Skip to main content
May 29, 2008
Question

External Data: An Easier Way?

  • May 29, 2008
  • 1 reply
  • 278 views
I'm trying to create a map with a number of spots for people to click to get more information about those locations. The file vtest.txt works and the code, as it is at least for two spots now, also works. But would I have to create a new function for each button instance and variable from the text document? It seems like there should be a more efficient method of handling this, but I'm not sure what? I have to say that I just started learning this from scratch a couple of days ago, so any help is appreciated.
This topic has been closed for replies.

1 reply

robdillon
Participating Frequently
May 30, 2008
If I'm reading this correctly, you're loading the same text file over and over. You only need to do this once. You can do this when the movie begins, and not wait until the user clicks on any given button. Once loaded, you can parse out the variable values and store them in variables in the movie. Then when the user clicks on any given button, you can place the value of the variable into the text space.
May 30, 2008
Thanks,

Ken