Hello everyone. I would greatly appreciate some help on this variable problem i am having. I love Flash but am fairly new to using actionscript. I am setting up a proposal system for my company where teh secretary will only have to alter the .txt files to produce a sales proposal. Therefore, everything I do has to be done without her having to open flash other than to simply Publish. To do this, I have set up two external text files:
1). Loads a bunch of customer, salesman, and product option variables (including price,option, etc)
2). Loads a batch of special “descriptions” (approx. 75 of these in paragraph form) with variable names P1 through P75.
I will only use 5 of these descriptions in the movie but it will change upon each use. My idea is to have a variable in the first text file that will call a specific description from the second text file. As you know, when I perform the loadVariables off the text files I cannot just assign description1 to equal my variable in the second text box.
(Example-- &description1=P10&)
So far my dynamic text box just reads P10.
How can I convert the P10 from a string to a variable name that matches one of teh descriptions to send the appropriate paragraph to a dynamic text box?
Thanks for your help, look forward to the what people can come up with.
Thoriphes…i am not following your post. This would go in flash actionscripting right? Again, i want to set description variable (located in one text file) to equal a variable (example P10) in my second text file once it has been loaded. P10 would equal a paragraph of language. Your fix would mean i would have to know ahead of time what description was to be used and changing that in flash right (ie. dldjkfkjdflsdf)?
from what I understand, P10 is a variable name that contains a paragraph of some sort. I would load the paragraph first and then the textfile with the variables and then assign the variable to the paragraph.
And yes, my script is actionscript, it would go really anywhere that suits you, or wherever your loading code resides.
okay, understand that. Let me share more info. Teh secretary will go into the first txt file and change several variables to match the situation (custname, custaddress, price1, price2,etc.) Included in these variables are ones called
desc1
desc2
desc3
i want the recept. to enter something like this:(leaving out & for speed)
desc1=P10
desc2=P11
desc3=P12
and then when imported to movie the dynamic text boxes would read the paragraphs associated to P10, P11, and P12 (found in text file 2). The P# would change every time due to situation. I do want to assign the variable to the right paragraph. Will your fix do that?