Groups | Blog | Home
all groups > flash actionscript > august 2007 >

flash actionscript : Appending data to dynamic text boxes


shurleynova
8/14/2007 8:32:46 PM
Ok so I got the dynamic text boxes to display the varibales on each loop but I
would like it to append to the text rather than replace the text because I want
to send it all at once to my asp page for processing.

so each of my 6 text fileds are setup like so

_root.object_txt=currentClip;
_root.xpos_txt=xpos;
_root.ypos_txt=ypos;
_root.interval_txt=Time;
_root.appear_txt=appear;

and they are in a looping function so each go around the loop the values
change one is based on a movieClip's appearence on the stage, the others are
when the variables change based on input from the XML file. The 6th box is
located in a button instance because it is tracking response time with a
seperate function altogether. But I digress, what I need to know is what am I
missing here? I need to append the dynamic text one each go around the loop
instead of replacing the current text with the new loop's info. Is there a easy
way to do this?
kglad
8/14/2007 8:35:36 PM
:



_root.object_txt="";
_root.xpos_txt="";
_root.ypos_txt="";
_root.interval_txt="";
_root.appear_txt="";

function yourLoopingFunction(){
_root.object_txt +=currentClip;
_root.xpos_txt +=xpos;
_root.ypos_txt +=ypos;
_root.interval_txt +=Time;
_root.appear_txt +=appear;
}
shurleynova
8/14/2007 8:40:11 PM
Ahh I see thx you rock

kglad
8/14/2007 8:40:42 PM
shurleynova
8/14/2007 8:46:02 PM
shurleynova
8/14/2007 8:50:40 PM
kglad
8/15/2007 4:45:01 AM
AddThis Social Bookmark Button