This is how things are set up in the fla:
Frame 1 has a stop action and i have the checkboxes on the main stage with each having a component name, then i have a button with this actions:
on (release){
formdata= new loadvars( );
formdata.name=name.getvalue( );
formdata.age=age.getvalue( );
formdata.send("1.asp", myVars, "POST"
;
gotoAndPlay(2);
}
// in the asp i do some computation with the true / false of the checkboxes and a new value of email & name are created.
On frame 2 i have text that says "loading...." and frame 2 has this action:
loadVariablesNum("1.asp", 0);
on frame 3 i have:
if (_root.Counter == 1) {
gotoAndStop(4);
} else {
gotoAndPlay(2);
}
// I have the asp record set incremented by a counter for each returned record
on frame 4 I have on the main stage a movie clip with instance of name and another movie clip with instance of age, each movie clip contain 1 fram of a dynamic text box. Boththe name & age box have a var of 'info'
the actions of frame 4 are as follows:
// depth
depth = -1;
// hide the origional clips
Name._visible = 0;
Age._visible = 0;
// split up the array by looking for the commas
Name_array = output.split(","
;
Age_array = eoutput.split(","
;
// get the length of the array
Name_length = Name_array.length;
Age_length = Age_array.length;
// set the start y position (x position depends on where you put it on the screen)
yposition = 38;
// looping everything
for (i=0; i<Name_length; i++) {
// Name
duplicateMovieClip(Name, "Name" add i, depth);
setProperty("Name" add i, _y, yposition);
Name.Name = Name_array[1];
set("Name" add i add ".info", Name_array);
depth--;
// Age
duplicateMovieClip(Age, "Age" add i, depth);
setProperty("Age" add i, _y, yposition);
Age.Age = Age_array[1];
set("Age" add i add ".info", Age_array);
depth--;
// Set the y position plus 30
yposition = yposition+30;
stop();
}
So how i planned this to work was the user selects the checkboxes and presses the send button and the movie goes to frame 2 which checks if the data is present and if so displays it. Any thought on this on why it isn't working? what happening is that when i submit the ceckbox data the "loading...." displays only and the internet connect opens as it searches but it never returns/displays any data.
Frame 1 has a stop action and i have the checkboxes on the main stage with each having a component name, then i have a button with this actions:
on (release){
formdata= new loadvars( );
formdata.name=name.getvalue( );
formdata.age=age.getvalue( );
formdata.send("1.asp", myVars, "POST"
gotoAndPlay(2);
}
// in the asp i do some computation with the true / false of the checkboxes and a new value of email & name are created.
On frame 2 i have text that says "loading...." and frame 2 has this action:
loadVariablesNum("1.asp", 0);
on frame 3 i have:
if (_root.Counter == 1) {
gotoAndStop(4);
} else {
gotoAndPlay(2);
}
// I have the asp record set incremented by a counter for each returned record
on frame 4 I have on the main stage a movie clip with instance of name and another movie clip with instance of age, each movie clip contain 1 fram of a dynamic text box. Boththe name & age box have a var of 'info'
the actions of frame 4 are as follows:
// depth
depth = -1;
// hide the origional clips
Name._visible = 0;
Age._visible = 0;
// split up the array by looking for the commas
Name_array = output.split(","
Age_array = eoutput.split(","
// get the length of the array
Name_length = Name_array.length;
Age_length = Age_array.length;
// set the start y position (x position depends on where you put it on the screen)
yposition = 38;
// looping everything
for (i=0; i<Name_length; i++) {
// Name
duplicateMovieClip(Name, "Name" add i, depth);
setProperty("Name" add i, _y, yposition);
Name.Name = Name_array[1];
set("Name" add i add ".info", Name_array);
depth--;
// Age
duplicateMovieClip(Age, "Age" add i, depth);
setProperty("Age" add i, _y, yposition);
Age.Age = Age_array[1];
set("Age" add i add ".info", Age_array);
depth--;
// Set the y position plus 30
yposition = yposition+30;
stop();
}
So how i planned this to work was the user selects the checkboxes and presses the send button and the movie goes to frame 2 which checks if the data is present and if so displays it. Any thought on this on why it isn't working? what happening is that when i submit the ceckbox data the "loading...." displays only and the internet connect opens as it searches but it never returns/displays any data.