Good day,
I am working on passing variables from dynamic text boxes to a PHP script. Most of the dynamic text boxes are located on the main timeline, and the values get passed without a problem. However, I have two dynamic text fields in separate nested movie clips that when passed show up as ‘undefined’.
I am pretty sure that the path I am using is wrong (although I am using every combination that I can think of). I am still a bit of a newbie, so it could be anything. I have spent the last two days googling, checking out forums and reading the books I have without any luck.
Does anyone have any ideas as to what I can try?
The code I am using is;
var name = this.nested_movie_mc.text_variable
I have also tried
var name = _root.nested_movie_mc.text_variable.text
var name = _parent.nested_movie_mc.text_variable
and every other combination I could think of.
Just to make sure everything is clear; ‘name’ is the variable I want to send to the PHP script, ‘nested_movie_mc’ is the name of the movie clip in which the dynamic text box resides and ‘text_variable’ is the variable name of the dynamic text box.
Any help would be greatly appreciated.
Thanks and have a good day. :cross-eye