Dynamic variable name with text file
hello guy,
is it possible to make dynamic text field name dynamic name?
example
here is a simple text file containing the variable names (mytext.txt)
sentence1=mytext1
&sentence2=mytext2
&sentence3=mytext3
&sentence4=mytext4
and so on..
action script:
loadVariables("mytext.txt", "_root");
in the main stage i have a dynamic text field with var name "sentence"
i need something like this:
sentence="sentence"+._currentframe
so if ._currentframe = 2 the text box should display "mytext2" not "sentence2"
any help is appreciated
Thank you