yourguide
11-21-2005, 05:43 PM
I am really new to actionscript, and I have searched all of the web to find the answer to this. I am guessing the answer is so simple that thats why I cant find it.
Please forgive my ignorance.
I have a form in Flash that has an accordion component in it with 5 movie clips in it.
I want to get the data from some text boxes that are in the accordion.
right now I have a variable holding my data called "dataSender"
The code works for the text boxes in the main flash movie, but it just puts "Undefined" in the text fields for the text boxes in the movie clips.
My code looks like this:
These Work:
dataSender.Phone = Phone.text;
dataSender.Fax = Fax.text;
These dont:
dataSender.Itm1Qty = Item1.Itm1Qty.text;
dataSender.Itm2Qty = Item2.Itm2Qty.text;
"Item1" Is the name of the first Movie Clip in the Accordion, "Item2" is the second movie clip, etc.
Itm1Qty and Itm2Qty are the names of the Text Boxes within their respective movie clips.
Is there someway for me to tell flash to pull the data from the movie clip, I tried the above thinking that adding the name of the movie clip before the name of the textbox within the clip would work.... but it doesn't.
Please help if you can... thanks.
I am thinking it is just a syntax thing.
Please forgive my ignorance.
I have a form in Flash that has an accordion component in it with 5 movie clips in it.
I want to get the data from some text boxes that are in the accordion.
right now I have a variable holding my data called "dataSender"
The code works for the text boxes in the main flash movie, but it just puts "Undefined" in the text fields for the text boxes in the movie clips.
My code looks like this:
These Work:
dataSender.Phone = Phone.text;
dataSender.Fax = Fax.text;
These dont:
dataSender.Itm1Qty = Item1.Itm1Qty.text;
dataSender.Itm2Qty = Item2.Itm2Qty.text;
"Item1" Is the name of the first Movie Clip in the Accordion, "Item2" is the second movie clip, etc.
Itm1Qty and Itm2Qty are the names of the Text Boxes within their respective movie clips.
Is there someway for me to tell flash to pull the data from the movie clip, I tried the above thinking that adding the name of the movie clip before the name of the textbox within the clip would work.... but it doesn't.
Please help if you can... thanks.
I am thinking it is just a syntax thing.