Sending lots of variables via PHP post.

  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Hi Guys,
I've got a Flash file with just over 100 text boxes - each with a different variable name. I've got it set up to send these variables to a PHP script, which then saves the info as a text file, to be reloaded into flash at a later date. Everything works Ok, apart from a very wierd thing...

When I open the text file to check that the variables have been saved correctly, I find that 3 or 4 of them are undefined. I checked all my code and couldn't see an error. The wierd thing is that if I delete these text boxes in flash and then create new ones with exatly the same instance and variable names, they now work...but.... 3 or 4 other variables (that were working before) are now undefined! Arrrrgh!

I thought it might be Flash, only allowing a maximum number of variables, but then it would shurely affect the most recently created text boxes - not just random ones in the middle? I also thought it could be the PHP post_max_size - but this is set to 8MB on my server, which should be more that enough to send text only?

I'm really confused as to what is happening - any ideas anyone?

Thanks,

DrGonzo.
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

***Update***

I have managed to fix it - but i'm not sure how!

I just kept deleting the text boxes and re-creating them until I reached the end of the list and now they're all defined...

If anyone knows why this happened/worked it would be very interesting to know...

Thanks,

DrGonzo.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Is it possible that somehow you had the wrong name on a few random textboxes in the middle? To me that would make the most logical sense since you said you deleted and re-created them and that is what fixed it. If you had a wrong name then your script would show undefined for whatever you thought it was supposed to be looking for.

Either that or maybe you were missing a quote somewhere which wasn't allowing the name attribute to be parsed correctly which in affect would do the same behavior.
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Hi ya,
I thought that would be the problem when It first came up, but when I fixed one text box (by deleting and then re-creating) a different text box would be undefined - one that had worked before and hadn't been changed...!

I have since had the problem come back after adding some new variables...

I just can't work it out, it's really illogical....
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I have another idea but because your variable data isn't truncating at the end I am not sure. Are you sending the variables by the POST or GET method? I believe it depends on the browswer (and maybe server too), but the limit could be around 1024 characters on the GET method. I believe the POST method doesn't have that limit.
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Unfotunately I am already using POST....

It looks like it's definately a problem with Flash, because the text boxes aren't populating in the first place. This is the code i'm using in Flash:

Code: [ Select ]
onEnterFrame = function() {

//populates the variable text boxes to be sent when file is saved
    SaveIm1Name_txt.text = String(_root.Im1.StampedFileName_txt.text+_root.origName_txt.text);
    SaveIm1Rot_txt.text = String(_root.transHolder.umbongo._rotation);
    SaveIm1x_txt.text = String(_root.transHolder.umbongo._x);
    SaveIm1y_txt.text = String(_root.transHolder.umbongo._y);
    SaveIm1Width_txt.text = String(_root.transHolder.umbongo._width);
    SaveIm1Height_txt.text = String(_root.transHolder.umbongo._height);
    
    SaveIm2Name_txt.text = String(_root.Im2.StampedFileName2_txt.text+_root.origName2_txt.text);    
    SaveIm2Rot_txt.text = String(_root.transHolder2.umbongo2._rotation);
    SaveIm2x_txt.text = String(_root.transHolder2.umbongo2._x);
    SaveIm2y_txt.text = String(_root.transHolder2.umbongo2._y);
    SaveIm2Width_txt.text = String(_root.transHolder2.umbongo2._width);
    SaveIm2Height_txt.text = String(_root.transHolder2.umbongo2._height);
    
    SaveIm3Name_txt.text = String(_root.Im3.StampedFileName3_txt.text+_root.origName3_txt.text);
    SaveIm3Rot_txt.text = String(_root.transHolder3.umbongo3._rotation);
    SaveIm3x_txt.text = String(_root.transHolder3.umbongo3._x);
    SaveIm3y_txt.text = String(_root.transHolder3.umbongo3._y);
    SaveIm3Width_txt.text = String(_root.transHolder3.umbongo3._width);
    SaveIm3Height_txt.text = String(_root.transHolder3.umbongo3._height);
    
    SaveIm4Name_txt.text = String(_root.Im4.StampedFileName4_txt.text+_root.origName4_txt.text);
    SaveIm4Rot_txt.text = String(_root.transHolder4.umbongo4._rotation);
    SaveIm4x_txt.text = String(_root.transHolder4.umbongo4._x);
    SaveIm4y_txt.text = String(_root.transHolder4.umbongo4._y);
    SaveIm4Width_txt.text = String(_root.transHolder4.umbongo4._width);
    SaveIm4Height_txt.text = String(_root.transHolder4.umbongo4._height);
    
    SaveText1Text_txt.text = String(_root.textMovie.inputOne_txt.text);
    SaveText1x_txt.text = String(_root.textHolder.text1MC._x);
    SaveText1y_txt.text = String(_root.textHolder.text1MC._y);
    SaveText1Rot_txt.text = String(_root.textHolder.text1MC._rotation);
    
    SaveText2Text_txt.text = String(_root.textMovie.inputTwo_txt.text);
    SaveText2x_txt.text = String(_root.textHolder.text2MC._x);
    SaveText2y_txt.text = String(_root.textHolder.text2MC._y);
    SaveText2Rot_txt.text = String(_root.textHolder.text2MC._rotation);
    
    SaveText3Text_txt.text = String(_root.textMovie.inputThree_txt.text);
    SaveText3x_txt.text = String(_root.textHolder.text3MC._x);
    SaveText3y_txt.text = String(_root.textHolder.text3MC._y);
    SaveText3Rot_txt.text = String(_root.textHolder.text3MC._rotation);
    
    SaveText4Text_txt.text = String(_root.textMovie.inputFour_txt.text);
    SaveText4x_txt.text = String(_root.textHolder.text4MC._x);
    SaveText4y_txt.text = String(_root.textHolder.text4MC._y);
    SaveText4Rot_txt.text = String(_root.textHolder.text4MC._rotation);
    
    SaveText5Text_txt.text = String(_root.textMovie.inputFive_txt.text);
    SaveText5x_txt.text = String(_root.textHolder.text5MC._x);
    SaveText5y_txt.text = String(_root.textHolder.text5MC._y);
    SaveText5Rot_txt.text = String(_root.textHolder.text5MC._rotation);
    
    SaveText6Text_txt.text = String(_root.textMovie.inputSix_txt.text);
    SaveText6x_txt.text = String(_root.textHolder.text6MC._x);
    SaveText6y_txt.text = String(_root.textHolder.text6MC._y);
    SaveText6Rot_txt.text = String(_root.textHolder.text6MC._rotation);
    
    SaveText7Text_txt.text = String(_root.textMovie2.inputSeven_txt.text);
    SaveText7x_txt.text = String(_root.textHolder2.text7MC._x);
    SaveText7y_txt.text = String(_root.textHolder2.text7MC._y);
    SaveText7Rot_txt.text = String(_root.textHolder2.text7MC._rotation);
    
    SaveText8Text_txt.text = String(_root.textMovie2.inputEight_txt.text);
    SaveText8x_txt.text = String(_root.textHolder2.text8MC._x);
    SaveText8y_txt.text = String(_root.textHolder2.text8MC._y);
    SaveText8Rot_txt.text = String(_root.textHolder2.text8MC._rotation);
    
    SaveText9Text_txt.text = String(_root.textMovie2.inputNine_txt.text);
    SaveText9x_txt.text = String(_root.textHolder2.text9MC._x);
    SaveText9y_txt.text = String(_root.textHolder2.text9MC._y);
    SaveText9Rot_txt.text = String(_root.textHolder2.text9MC._rotation);    
    
    SaveText10Text_txt.text = String(_root.textMovie2.inputTen_txt.text);
    SaveText10x_txt.text = String(_root.textHolder2.text10MC._x);
    SaveText10y_txt.text = String(_root.textHolder2.text10MC._y);
    SaveText10Rot_txt.text = String(_root.textHolder2.text10MC._rotation);
    
    SaveText11Text_txt.text = String(_root.textMovie2.inputEleven_txt.text);
    SaveText11x_txt.text = String(_root.textHolder2.text11MC._x);
    SaveText11y_txt.text = String(_root.textHolder2.text11MC._y);
    SaveText11Rot_txt.text = String(_root.textHolder2.text11MC._rotation);
    
    SaveText12Text_txt.text = String(_root.textMovie2.inputTwelve_txt.text);
    SaveText12x_txt.text = String(_root.textHolder2.text12MC._x);
    SaveText12y_txt.text = String(_root.textHolder2.text12MC._y);
    SaveText12Rot_txt.text = String(_root.textHolder2.text12MC._rotation);
    
     SaveCol1_txt.text = String("0x"+lineOne_fmt_colour.color.toString(16));
     SaveCol2_txt.text = String("0x"+lineTwo_fmt_colour.color.toString(16));
     SaveCol3_txt.text = String("0x"+lineThree_fmt_colour.color.toString(16));
     SaveCol4_txt.text = String("0x"+lineFour_fmt_colour.color.toString(16));
     SaveCol5_txt.text = String("0x"+lineFive_fmt_colour.color.toString(16));
     SaveCol6_txt.text = String("0x"+lineSix_fmt_colour.color.toString(16));
     SaveCol7_txt.text = String("0x"+lineSeven_fmt_colour.color.toString(16));
     SaveCol8_txt.text = String("0x"+lineEight_fmt_colour.color.toString(16));
     SaveCol9_txt.text = String("0x"+lineNine_fmt_colour.color.toString(16));
     SaveCol10_txt.text = String("0x"+lineTen_fmt_colour.color.toString(16));
     SaveCol11_txt.text = String("0x"+lineEleven_fmt_colour.color.toString(16));
     SaveCol12_txt.text = String("0x"+lineTwelve_fmt_colour.color.toString(16));
     SaveSize1_txt.text = String(lineOne_fmt_size.size);
     SaveSize2_txt.text = String(lineTwo_fmt_size.size);
     SaveSize3_txt.text = String(lineThree_fmt_size.size);
     SaveSize4_txt.text = String(lineFour_fmt_size.size);
     SaveSize5_txt.text = String(lineFive_fmt_size.size);
     SaveSize6_txt.text = String(lineSix_fmt_size.size);
     SaveSize7_txt.text = String(lineSeven_fmt_size.size);
     SaveSize8_txt.text = String(lineEight_fmt_size.size);
     SaveSize9_txt.text = String(lineNine_fmt_size.size);
     SaveSize10_txt.text = String(lineTen_fmt_size.size);
     SaveSize11_txt.text = String(lineEleven_fmt_size.size);
     SaveSize12_txt.text = String(lineTwelve_fmt_size.size);    
     SaveFont1_txt.text = String(lineOne_fmt_font.font);
     SaveFont2_txt.text = String(lineTwo_fmt_font.font);
     SaveFont3_txt.text = String(lineThree_fmt_font.font);
     SaveFont4_txt.text = String(lineFour_fmt_font.font);
     SaveFont5_txt.text = String(lineFive_fmt_font.font);
     SaveFont6_txt.text = String(lineSix_fmt_font.font);
     SaveFont7_txt.text = String(lineSeven_fmt_font.font);
     SaveFont8_txt.text = String(lineEight_fmt_font.font);
     SaveFont9_txt.text = String(lineNine_fmt_font.font);
     SaveFont10_txt.text = String(lineTen_fmt_font.font);
     SaveFont11_txt.text = String(lineEleven_fmt_font.font);
     SaveFont12_txt.text = String(lineTwelve_fmt_font.font);
}
//onEnterFrame function has ended

var myVars:LoadVars = new LoadVars();
myVars.onLoad = function():Void
{
if (myVars.verify == "success") status_txt.text = "data Saved";
else              status_txt.text = "Failed Save";
};
saveButton.onPress = function(){
        
      myVars.Image1Name = SaveIm1Name_txt.text;    
      myVars.Image1Rot = SaveIm1Rot_txt.text;
      myVars.Image1x = SaveIm1x_txt.text;
     myVars.Image1y = SaveIm1y_txt.text;
     myVars.Image1Width = SaveIm1Width_txt.text;
     myVars.Image1Height = SaveIm1Height_txt.text;
    
      myVars.Image2Name = SaveIm2Name_txt.text;    
      myVars.Image2Rot = SaveIm2Rot_txt.text;
      myVars.Image2x = SaveIm2x_txt.text;
     myVars.Image2y = SaveIm2y_txt.text;
     myVars.Image2Width = SaveIm2Width_txt.text;
     myVars.Image2Height = SaveIm2Height_txt.text;     
    
     myVars.Image3Name = SaveIm3Name_txt.text;    
      myVars.Image3Rot = SaveIm3Rot_txt.text;
      myVars.Image3x = SaveIm3x_txt.text;
     myVars.Image3y = SaveIm3y_txt.text;
     myVars.Image3Width = SaveIm3Width_txt.text;
     myVars.Image3Height = SaveIm3Height_txt.text;    
    
     myVars.Image4Name = SaveIm4Name_txt.text;    
      myVars.Image4Rot = SaveIm4Rot_txt.text;
      myVars.Image4x = SaveIm4x_txt.text;
     myVars.Image4y = SaveIm4y_txt.text;
     myVars.Image4Width = SaveIm4Width_txt.text;
     myVars.Image4Height = SaveIm4Height_txt.text;
    
     myVars.Text1Text = SaveText1Text_txt.text;
     myVars.Text1x = SaveText1x_txt.text;
     myVars.Text1y = SaveText1y_txt.text; 
     myVars.Text1Rot = SaveText1Rot_txt.text;
    
     myVars.Text2Text = SaveText2Text_txt.text;
     myVars.Text2x = SaveText2x_txt.text;
     myVars.Text2y = SaveText2y_txt.text; 
     myVars.Text2Rot = SaveText2Rot_txt.text;

     myVars.Text3Text = SaveText3Text_txt.text;
     myVars.Text3x = SaveText3x_txt.text;
     myVars.Text3y = SaveText3y_txt.text; 
     myVars.Text3Rot = SaveText3Rot_txt.text;
    
     myVars.Text4Text = SaveText4Text_txt.text;
     myVars.Text4x = SaveText4x_txt.text;
     myVars.Text4y = SaveText4y_txt.text; 
     myVars.Text4Rot = SaveText4Rot_txt.text;

     myVars.Text5Text = SaveText5Text_txt.text;
     myVars.Text5x = SaveText5x_txt.text;
     myVars.Text5y = SaveText5y_txt.text; 
     myVars.Text5Rot = SaveText5Rot_txt.text;
    
     myVars.Text6Text = SaveText6Text_txt.text;
     myVars.Text6x = SaveText6x_txt.text;
     myVars.Text6y = SaveText6y_txt.text; 
     myVars.Text6Rot = SaveText6Rot_txt.text;

     myVars.Text7Text = SaveText7Text_txt.text;
     myVars.Text7x = SaveText7x_txt.text;
     myVars.Text7y = SaveText7y_txt.text; 
     myVars.Text7Rot = SaveText7Rot_txt.text;
    
     myVars.Text8Text = SaveText8Text_txt.text;
     myVars.Text8x = SaveText8x_txt.text;
     myVars.Text8y = SaveText8y_txt.text; 
     myVars.Text8Rot = SaveText8Rot_txt.text;    
    
     myVars.Text9Text = SaveText9Text_txt.text;
     myVars.Text9x = SaveText9x_txt.text;
     myVars.Text9y = SaveText9y_txt.text; 
     myVars.Text9Rot = SaveText9Rot_txt.text;
    
     myVars.Text10Text = SaveText10Text_txt.text;
     myVars.Text10x = SaveText10x_txt.text;
     myVars.Text10y = SaveText10y_txt.text; 
     myVars.Text10Rot = SaveText10Rot_txt.text;

     myVars.Text11Text = SaveText11Text_txt.text;
     myVars.Text11x = SaveText11x_txt.text;
     myVars.Text11y = SaveText11y_txt.text; 
     myVars.Text11Rot = SaveText11Rot_txt.text;
    
     myVars.Text12Text = SaveText12Text_txt.text;
     myVars.Text12x = SaveText12x_txt.text;
     myVars.Text12y = SaveText12y_txt.text; 
     myVars.Text12Rot = SaveText12Rot_txt.text;     
    
     myVars.productName = productName_txt.text
     myVars.productCode = productCode_txt.text
      myVars.productColour = productColour_txt.text
    
      myVars.Col1 = SaveCol1_txt.text;
     myVars.Col2 = SaveCol2_txt.text;
     myVars.Col3 = SaveCol3_txt.text;
     myVars.Col4 = SaveCol4_txt.text;
     myVars.Col5 = SaveCol5_txt.text;
     myVars.Col6 = SaveCol6_txt.text;
     myVars.Col7 = SaveCol7_txt.text;
     myVars.Col8 = SaveCol8_txt.text;
     myVars.Col9 = SaveCol9_txt.text;
     myVars.Col10 = SaveCol10_txt.text;
     myVars.Col11 = SaveCol11_txt.text;
     myVars.Col12 = SaveCol12_txt.text;    
     myVars.Size1 = SaveSize1_txt.text;
     myVars.Size2 = SaveSize2_txt.text;
     myVars.Size3 = SaveSize3_txt.text;
     myVars.Size4 = SaveSize4_txt.text;
     myVars.Size5 = SaveSize5_txt.text;
     myVars.Size6 = SaveSize6_txt.text;
     myVars.Size7 = SaveSize7_txt.text;
     myVars.Size8 = SaveSize8_txt.text;
     myVars.Size9 = SaveSize9_txt.text;
     myVars.Size10 = SaveSize10_txt.text;
     myVars.Size11 = SaveSize11_txt.text;
     myVars.Size12 = SaveSize12_txt.text;    
     myVars.Font1 = SaveFont1_txt.text;
     myVars.Font2 = SaveFont2_txt.text;
     myVars.Font3 = SaveFont3_txt.text;
     myVars.Font4 = SaveFont4_txt.text;
     myVars.Font5 = SaveFont5_txt.text;
     myVars.Font6 = SaveFont6_txt.text;
     myVars.Font7 = SaveFont7_txt.text;
     myVars.Font8 = SaveFont8_txt.text;
     myVars.Font9 = SaveFont9_txt.text;
     myVars.Font10 = SaveFont10_txt.text;
     myVars.Font11 = SaveFont11_txt.text;
     myVars.Font12 = SaveFont12_txt.text;        
    
     myVars.tint1 = tint1_txt.text;
     myVars.tint2 = tint2_txt.text;
 
 myVars.FirstName = firstName_txt.text;
 myVars.SurName = surName_txt.text;
 myVars.postCode = postCode_txt.text;

 myVars.sendAndLoad("writeToFile.php", myVars, "POST");
}
  1. onEnterFrame = function() {
  2. //populates the variable text boxes to be sent when file is saved
  3.     SaveIm1Name_txt.text = String(_root.Im1.StampedFileName_txt.text+_root.origName_txt.text);
  4.     SaveIm1Rot_txt.text = String(_root.transHolder.umbongo._rotation);
  5.     SaveIm1x_txt.text = String(_root.transHolder.umbongo._x);
  6.     SaveIm1y_txt.text = String(_root.transHolder.umbongo._y);
  7.     SaveIm1Width_txt.text = String(_root.transHolder.umbongo._width);
  8.     SaveIm1Height_txt.text = String(_root.transHolder.umbongo._height);
  9.     
  10.     SaveIm2Name_txt.text = String(_root.Im2.StampedFileName2_txt.text+_root.origName2_txt.text);    
  11.     SaveIm2Rot_txt.text = String(_root.transHolder2.umbongo2._rotation);
  12.     SaveIm2x_txt.text = String(_root.transHolder2.umbongo2._x);
  13.     SaveIm2y_txt.text = String(_root.transHolder2.umbongo2._y);
  14.     SaveIm2Width_txt.text = String(_root.transHolder2.umbongo2._width);
  15.     SaveIm2Height_txt.text = String(_root.transHolder2.umbongo2._height);
  16.     
  17.     SaveIm3Name_txt.text = String(_root.Im3.StampedFileName3_txt.text+_root.origName3_txt.text);
  18.     SaveIm3Rot_txt.text = String(_root.transHolder3.umbongo3._rotation);
  19.     SaveIm3x_txt.text = String(_root.transHolder3.umbongo3._x);
  20.     SaveIm3y_txt.text = String(_root.transHolder3.umbongo3._y);
  21.     SaveIm3Width_txt.text = String(_root.transHolder3.umbongo3._width);
  22.     SaveIm3Height_txt.text = String(_root.transHolder3.umbongo3._height);
  23.     
  24.     SaveIm4Name_txt.text = String(_root.Im4.StampedFileName4_txt.text+_root.origName4_txt.text);
  25.     SaveIm4Rot_txt.text = String(_root.transHolder4.umbongo4._rotation);
  26.     SaveIm4x_txt.text = String(_root.transHolder4.umbongo4._x);
  27.     SaveIm4y_txt.text = String(_root.transHolder4.umbongo4._y);
  28.     SaveIm4Width_txt.text = String(_root.transHolder4.umbongo4._width);
  29.     SaveIm4Height_txt.text = String(_root.transHolder4.umbongo4._height);
  30.     
  31.     SaveText1Text_txt.text = String(_root.textMovie.inputOne_txt.text);
  32.     SaveText1x_txt.text = String(_root.textHolder.text1MC._x);
  33.     SaveText1y_txt.text = String(_root.textHolder.text1MC._y);
  34.     SaveText1Rot_txt.text = String(_root.textHolder.text1MC._rotation);
  35.     
  36.     SaveText2Text_txt.text = String(_root.textMovie.inputTwo_txt.text);
  37.     SaveText2x_txt.text = String(_root.textHolder.text2MC._x);
  38.     SaveText2y_txt.text = String(_root.textHolder.text2MC._y);
  39.     SaveText2Rot_txt.text = String(_root.textHolder.text2MC._rotation);
  40.     
  41.     SaveText3Text_txt.text = String(_root.textMovie.inputThree_txt.text);
  42.     SaveText3x_txt.text = String(_root.textHolder.text3MC._x);
  43.     SaveText3y_txt.text = String(_root.textHolder.text3MC._y);
  44.     SaveText3Rot_txt.text = String(_root.textHolder.text3MC._rotation);
  45.     
  46.     SaveText4Text_txt.text = String(_root.textMovie.inputFour_txt.text);
  47.     SaveText4x_txt.text = String(_root.textHolder.text4MC._x);
  48.     SaveText4y_txt.text = String(_root.textHolder.text4MC._y);
  49.     SaveText4Rot_txt.text = String(_root.textHolder.text4MC._rotation);
  50.     
  51.     SaveText5Text_txt.text = String(_root.textMovie.inputFive_txt.text);
  52.     SaveText5x_txt.text = String(_root.textHolder.text5MC._x);
  53.     SaveText5y_txt.text = String(_root.textHolder.text5MC._y);
  54.     SaveText5Rot_txt.text = String(_root.textHolder.text5MC._rotation);
  55.     
  56.     SaveText6Text_txt.text = String(_root.textMovie.inputSix_txt.text);
  57.     SaveText6x_txt.text = String(_root.textHolder.text6MC._x);
  58.     SaveText6y_txt.text = String(_root.textHolder.text6MC._y);
  59.     SaveText6Rot_txt.text = String(_root.textHolder.text6MC._rotation);
  60.     
  61.     SaveText7Text_txt.text = String(_root.textMovie2.inputSeven_txt.text);
  62.     SaveText7x_txt.text = String(_root.textHolder2.text7MC._x);
  63.     SaveText7y_txt.text = String(_root.textHolder2.text7MC._y);
  64.     SaveText7Rot_txt.text = String(_root.textHolder2.text7MC._rotation);
  65.     
  66.     SaveText8Text_txt.text = String(_root.textMovie2.inputEight_txt.text);
  67.     SaveText8x_txt.text = String(_root.textHolder2.text8MC._x);
  68.     SaveText8y_txt.text = String(_root.textHolder2.text8MC._y);
  69.     SaveText8Rot_txt.text = String(_root.textHolder2.text8MC._rotation);
  70.     
  71.     SaveText9Text_txt.text = String(_root.textMovie2.inputNine_txt.text);
  72.     SaveText9x_txt.text = String(_root.textHolder2.text9MC._x);
  73.     SaveText9y_txt.text = String(_root.textHolder2.text9MC._y);
  74.     SaveText9Rot_txt.text = String(_root.textHolder2.text9MC._rotation);    
  75.     
  76.     SaveText10Text_txt.text = String(_root.textMovie2.inputTen_txt.text);
  77.     SaveText10x_txt.text = String(_root.textHolder2.text10MC._x);
  78.     SaveText10y_txt.text = String(_root.textHolder2.text10MC._y);
  79.     SaveText10Rot_txt.text = String(_root.textHolder2.text10MC._rotation);
  80.     
  81.     SaveText11Text_txt.text = String(_root.textMovie2.inputEleven_txt.text);
  82.     SaveText11x_txt.text = String(_root.textHolder2.text11MC._x);
  83.     SaveText11y_txt.text = String(_root.textHolder2.text11MC._y);
  84.     SaveText11Rot_txt.text = String(_root.textHolder2.text11MC._rotation);
  85.     
  86.     SaveText12Text_txt.text = String(_root.textMovie2.inputTwelve_txt.text);
  87.     SaveText12x_txt.text = String(_root.textHolder2.text12MC._x);
  88.     SaveText12y_txt.text = String(_root.textHolder2.text12MC._y);
  89.     SaveText12Rot_txt.text = String(_root.textHolder2.text12MC._rotation);
  90.     
  91.      SaveCol1_txt.text = String("0x"+lineOne_fmt_colour.color.toString(16));
  92.      SaveCol2_txt.text = String("0x"+lineTwo_fmt_colour.color.toString(16));
  93.      SaveCol3_txt.text = String("0x"+lineThree_fmt_colour.color.toString(16));
  94.      SaveCol4_txt.text = String("0x"+lineFour_fmt_colour.color.toString(16));
  95.      SaveCol5_txt.text = String("0x"+lineFive_fmt_colour.color.toString(16));
  96.      SaveCol6_txt.text = String("0x"+lineSix_fmt_colour.color.toString(16));
  97.      SaveCol7_txt.text = String("0x"+lineSeven_fmt_colour.color.toString(16));
  98.      SaveCol8_txt.text = String("0x"+lineEight_fmt_colour.color.toString(16));
  99.      SaveCol9_txt.text = String("0x"+lineNine_fmt_colour.color.toString(16));
  100.      SaveCol10_txt.text = String("0x"+lineTen_fmt_colour.color.toString(16));
  101.      SaveCol11_txt.text = String("0x"+lineEleven_fmt_colour.color.toString(16));
  102.      SaveCol12_txt.text = String("0x"+lineTwelve_fmt_colour.color.toString(16));
  103.      SaveSize1_txt.text = String(lineOne_fmt_size.size);
  104.      SaveSize2_txt.text = String(lineTwo_fmt_size.size);
  105.      SaveSize3_txt.text = String(lineThree_fmt_size.size);
  106.      SaveSize4_txt.text = String(lineFour_fmt_size.size);
  107.      SaveSize5_txt.text = String(lineFive_fmt_size.size);
  108.      SaveSize6_txt.text = String(lineSix_fmt_size.size);
  109.      SaveSize7_txt.text = String(lineSeven_fmt_size.size);
  110.      SaveSize8_txt.text = String(lineEight_fmt_size.size);
  111.      SaveSize9_txt.text = String(lineNine_fmt_size.size);
  112.      SaveSize10_txt.text = String(lineTen_fmt_size.size);
  113.      SaveSize11_txt.text = String(lineEleven_fmt_size.size);
  114.      SaveSize12_txt.text = String(lineTwelve_fmt_size.size);    
  115.      SaveFont1_txt.text = String(lineOne_fmt_font.font);
  116.      SaveFont2_txt.text = String(lineTwo_fmt_font.font);
  117.      SaveFont3_txt.text = String(lineThree_fmt_font.font);
  118.      SaveFont4_txt.text = String(lineFour_fmt_font.font);
  119.      SaveFont5_txt.text = String(lineFive_fmt_font.font);
  120.      SaveFont6_txt.text = String(lineSix_fmt_font.font);
  121.      SaveFont7_txt.text = String(lineSeven_fmt_font.font);
  122.      SaveFont8_txt.text = String(lineEight_fmt_font.font);
  123.      SaveFont9_txt.text = String(lineNine_fmt_font.font);
  124.      SaveFont10_txt.text = String(lineTen_fmt_font.font);
  125.      SaveFont11_txt.text = String(lineEleven_fmt_font.font);
  126.      SaveFont12_txt.text = String(lineTwelve_fmt_font.font);
  127. }
  128. //onEnterFrame function has ended
  129. var myVars:LoadVars = new LoadVars();
  130. myVars.onLoad = function():Void
  131. {
  132. if (myVars.verify == "success") status_txt.text = "data Saved";
  133. else              status_txt.text = "Failed Save";
  134. };
  135. saveButton.onPress = function(){
  136.         
  137.       myVars.Image1Name = SaveIm1Name_txt.text;    
  138.       myVars.Image1Rot = SaveIm1Rot_txt.text;
  139.       myVars.Image1x = SaveIm1x_txt.text;
  140.      myVars.Image1y = SaveIm1y_txt.text;
  141.      myVars.Image1Width = SaveIm1Width_txt.text;
  142.      myVars.Image1Height = SaveIm1Height_txt.text;
  143.     
  144.       myVars.Image2Name = SaveIm2Name_txt.text;    
  145.       myVars.Image2Rot = SaveIm2Rot_txt.text;
  146.       myVars.Image2x = SaveIm2x_txt.text;
  147.      myVars.Image2y = SaveIm2y_txt.text;
  148.      myVars.Image2Width = SaveIm2Width_txt.text;
  149.      myVars.Image2Height = SaveIm2Height_txt.text;     
  150.     
  151.      myVars.Image3Name = SaveIm3Name_txt.text;    
  152.       myVars.Image3Rot = SaveIm3Rot_txt.text;
  153.       myVars.Image3x = SaveIm3x_txt.text;
  154.      myVars.Image3y = SaveIm3y_txt.text;
  155.      myVars.Image3Width = SaveIm3Width_txt.text;
  156.      myVars.Image3Height = SaveIm3Height_txt.text;    
  157.     
  158.      myVars.Image4Name = SaveIm4Name_txt.text;    
  159.       myVars.Image4Rot = SaveIm4Rot_txt.text;
  160.       myVars.Image4x = SaveIm4x_txt.text;
  161.      myVars.Image4y = SaveIm4y_txt.text;
  162.      myVars.Image4Width = SaveIm4Width_txt.text;
  163.      myVars.Image4Height = SaveIm4Height_txt.text;
  164.     
  165.      myVars.Text1Text = SaveText1Text_txt.text;
  166.      myVars.Text1x = SaveText1x_txt.text;
  167.      myVars.Text1y = SaveText1y_txt.text; 
  168.      myVars.Text1Rot = SaveText1Rot_txt.text;
  169.     
  170.      myVars.Text2Text = SaveText2Text_txt.text;
  171.      myVars.Text2x = SaveText2x_txt.text;
  172.      myVars.Text2y = SaveText2y_txt.text; 
  173.      myVars.Text2Rot = SaveText2Rot_txt.text;
  174.      myVars.Text3Text = SaveText3Text_txt.text;
  175.      myVars.Text3x = SaveText3x_txt.text;
  176.      myVars.Text3y = SaveText3y_txt.text; 
  177.      myVars.Text3Rot = SaveText3Rot_txt.text;
  178.     
  179.      myVars.Text4Text = SaveText4Text_txt.text;
  180.      myVars.Text4x = SaveText4x_txt.text;
  181.      myVars.Text4y = SaveText4y_txt.text; 
  182.      myVars.Text4Rot = SaveText4Rot_txt.text;
  183.      myVars.Text5Text = SaveText5Text_txt.text;
  184.      myVars.Text5x = SaveText5x_txt.text;
  185.      myVars.Text5y = SaveText5y_txt.text; 
  186.      myVars.Text5Rot = SaveText5Rot_txt.text;
  187.     
  188.      myVars.Text6Text = SaveText6Text_txt.text;
  189.      myVars.Text6x = SaveText6x_txt.text;
  190.      myVars.Text6y = SaveText6y_txt.text; 
  191.      myVars.Text6Rot = SaveText6Rot_txt.text;
  192.      myVars.Text7Text = SaveText7Text_txt.text;
  193.      myVars.Text7x = SaveText7x_txt.text;
  194.      myVars.Text7y = SaveText7y_txt.text; 
  195.      myVars.Text7Rot = SaveText7Rot_txt.text;
  196.     
  197.      myVars.Text8Text = SaveText8Text_txt.text;
  198.      myVars.Text8x = SaveText8x_txt.text;
  199.      myVars.Text8y = SaveText8y_txt.text; 
  200.      myVars.Text8Rot = SaveText8Rot_txt.text;    
  201.     
  202.      myVars.Text9Text = SaveText9Text_txt.text;
  203.      myVars.Text9x = SaveText9x_txt.text;
  204.      myVars.Text9y = SaveText9y_txt.text; 
  205.      myVars.Text9Rot = SaveText9Rot_txt.text;
  206.     
  207.      myVars.Text10Text = SaveText10Text_txt.text;
  208.      myVars.Text10x = SaveText10x_txt.text;
  209.      myVars.Text10y = SaveText10y_txt.text; 
  210.      myVars.Text10Rot = SaveText10Rot_txt.text;
  211.      myVars.Text11Text = SaveText11Text_txt.text;
  212.      myVars.Text11x = SaveText11x_txt.text;
  213.      myVars.Text11y = SaveText11y_txt.text; 
  214.      myVars.Text11Rot = SaveText11Rot_txt.text;
  215.     
  216.      myVars.Text12Text = SaveText12Text_txt.text;
  217.      myVars.Text12x = SaveText12x_txt.text;
  218.      myVars.Text12y = SaveText12y_txt.text; 
  219.      myVars.Text12Rot = SaveText12Rot_txt.text;     
  220.     
  221.      myVars.productName = productName_txt.text
  222.      myVars.productCode = productCode_txt.text
  223.       myVars.productColour = productColour_txt.text
  224.     
  225.       myVars.Col1 = SaveCol1_txt.text;
  226.      myVars.Col2 = SaveCol2_txt.text;
  227.      myVars.Col3 = SaveCol3_txt.text;
  228.      myVars.Col4 = SaveCol4_txt.text;
  229.      myVars.Col5 = SaveCol5_txt.text;
  230.      myVars.Col6 = SaveCol6_txt.text;
  231.      myVars.Col7 = SaveCol7_txt.text;
  232.      myVars.Col8 = SaveCol8_txt.text;
  233.      myVars.Col9 = SaveCol9_txt.text;
  234.      myVars.Col10 = SaveCol10_txt.text;
  235.      myVars.Col11 = SaveCol11_txt.text;
  236.      myVars.Col12 = SaveCol12_txt.text;    
  237.      myVars.Size1 = SaveSize1_txt.text;
  238.      myVars.Size2 = SaveSize2_txt.text;
  239.      myVars.Size3 = SaveSize3_txt.text;
  240.      myVars.Size4 = SaveSize4_txt.text;
  241.      myVars.Size5 = SaveSize5_txt.text;
  242.      myVars.Size6 = SaveSize6_txt.text;
  243.      myVars.Size7 = SaveSize7_txt.text;
  244.      myVars.Size8 = SaveSize8_txt.text;
  245.      myVars.Size9 = SaveSize9_txt.text;
  246.      myVars.Size10 = SaveSize10_txt.text;
  247.      myVars.Size11 = SaveSize11_txt.text;
  248.      myVars.Size12 = SaveSize12_txt.text;    
  249.      myVars.Font1 = SaveFont1_txt.text;
  250.      myVars.Font2 = SaveFont2_txt.text;
  251.      myVars.Font3 = SaveFont3_txt.text;
  252.      myVars.Font4 = SaveFont4_txt.text;
  253.      myVars.Font5 = SaveFont5_txt.text;
  254.      myVars.Font6 = SaveFont6_txt.text;
  255.      myVars.Font7 = SaveFont7_txt.text;
  256.      myVars.Font8 = SaveFont8_txt.text;
  257.      myVars.Font9 = SaveFont9_txt.text;
  258.      myVars.Font10 = SaveFont10_txt.text;
  259.      myVars.Font11 = SaveFont11_txt.text;
  260.      myVars.Font12 = SaveFont12_txt.text;        
  261.     
  262.      myVars.tint1 = tint1_txt.text;
  263.      myVars.tint2 = tint2_txt.text;
  264.  
  265.  myVars.FirstName = firstName_txt.text;
  266.  myVars.SurName = surName_txt.text;
  267.  myVars.postCode = postCode_txt.text;
  268.  myVars.sendAndLoad("writeToFile.php", myVars, "POST");
  269. }


What happens (for example) is
Code: [ Select ]
SaveText9y_txt, SaveText9Rot_txt, SaveText10Text_txt & SaveText10x_txt
will be undefined, I delete these text boxes and re-create them with the same names and then
Code: [ Select ]
SaveText10y_txt, SaveText10Rot_txt, SaveText11Text_txt & SaveText11x_txt
will be undefined, when they worked fine before...

It's really wierd isn't it?

Thanks for your ideas... keep 'em coming!

Dr G
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

When an error like that happens, usually to me it indicates that the problem is further up the page then since the same effect is happening.

Also you have a few areas missing semi colons, I am not sure if that could affect your situation:

Code: [ Select ]
myVars.productName = productName_txt.text
myVars.productCode = productCode_txt.text
myVars.productColour = productColour_txt.text
  1. myVars.productName = productName_txt.text
  2. myVars.productCode = productCode_txt.text
  3. myVars.productColour = productColour_txt.text
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Thanks for the heads-up on the semi colons - I put them in and tested it again (with double crossed fingers!) but with the same results.

I have just tried cutting and then pasting the effected text boxes (instead of deleting and re-creating) and that has the same effect!

I can't think what would be further up that could effect the text boxes in this way - the fact that I can simply cut and then paste the effected boxes (so essentialy everything is exactly the same) and thatchanges which boxes are effected - suggests to me that it's a problem with the boxes themselves. I don't know if flash has a maximum amount of text boxes or variable names that you can use, but somthing like that seems almost logical.

Before cutting and pasting, the output in my text file was this (a section of it):

Code: [ Select ]
&SaveText9Text=Testing&
&SaveText9x=undefined&
&SaveText9y=80&
&SaveText9Rot=0&
&SaveText10Text=Testing&
&SaveText10x=undefined&
&SaveText10y=undefined&
&SaveText10Rot=0&
  1. &SaveText9Text=Testing&
  2. &SaveText9x=undefined&
  3. &SaveText9y=80&
  4. &SaveText9Rot=0&
  5. &SaveText10Text=Testing&
  6. &SaveText10x=undefined&
  7. &SaveText10y=undefined&
  8. &SaveText10Rot=0&


I then cut the undefined text boxes from the flash file and pasted them back in the same place, and the output was this:

Code: [ Select ]
&SaveText9Text=Testing&
&SaveText9x=54&
&SaveText9y=undefined&
&SaveText9Rot=undefined&
&SaveText10Text=undefined&
&SaveText10x=354.7&
&SaveText10y=6.75&
&SaveText10Rot=0&
  1. &SaveText9Text=Testing&
  2. &SaveText9x=54&
  3. &SaveText9y=undefined&
  4. &SaveText9Rot=undefined&
  5. &SaveText10Text=undefined&
  6. &SaveText10x=354.7&
  7. &SaveText10y=6.75&
  8. &SaveText10Rot=0&


It could be somthing stupid that i'm missing (like the semi colons) but it's just such odd behaviour, I can't think what it would be....

Thanks for all your suggestions... let me know if you think of anything else...

Thanks,

Dr G.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Each time you simply rerun the program does it give you random undefined lines? Or are they always the same until you recompile the flash?
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

They are always the same... They even stay the same when I re-publish, but don't cut and paste (or delete and re-create) the effected boxes...
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Have you tried removing one textbox completely to see if the number of undefines reduces by 1 or stays the same?
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Ok... this is really wierd!

I tried deleting one of the effected text boxes; SaveText12x_txt (and not replacing) as you suggested.

This caused an extra undefined result!

i.e - before deleting:

Code: [ Select ]
&SaveIm1Name=&
&SaveIm1Rot=0&
&SaveIm1x=0&
&SaveIm1y=0&
&SaveIm1Width=16&
&SaveIm1Height=23&
&SaveIm2Name=&
&SaveIm2Rot=0&
&SaveIm2x=0&
&SaveIm2y=0&
&SaveIm2Width=10&
&SaveIm2Height=15&
&SaveIm3Name=&
&SaveIm3Rot=0&
&SaveIm3x=0&
&SaveIm3y=0&
&SaveIm3Width=10&
&SaveIm3Height=14&
&SaveIm4Name=&
&SaveIm4Rot=0&
&SaveIm4x=0&
&SaveIm4y=0&
&SaveIm4Width=11&
&SaveIm4Height=10&
&SaveText1Text=&
&SaveText1x=60&
&SaveText1y=9.2&
&SaveText1Rot=0&
&SaveText2Text=&
&SaveText2x=60&
&SaveText2y=49.5&
&SaveText2Rot=0&
&SaveText3Text=&
&SaveText3x=60&
&SaveText3y=90&
&SaveText3Rot=0&
&SaveText4Text=&
&SaveText4x=360&
&SaveText4y=10.6&
&SaveText4Rot=0&
&SaveText5Text=&
&SaveText5x=360&
&SaveText5y=53.5&
&SaveText5Rot=0&
&SaveText6Text=&
&SaveText6x=360&
&SaveText6y=93.9&
&SaveText6Rot=0&
&SaveText7Text=&
&SaveText7x=54&
&SaveText7y=-0.8&
&SaveText7Rot=0&
&SaveText8Text=&
&SaveText8x=54&
&SaveText8y=39.5&
&SaveText8Rot=0&
&SaveText9Text=&
&SaveText9x=54&
&SaveText9y=80&
&SaveText9Rot=0&
&SaveText10Text=&
&SaveText10x=360&
&SaveText10y=0.6&
&SaveText10Rot=0&
&SaveText11Text=&
&SaveText11x=360&
&SaveText11y=43.5&
&SaveText11Rot=0&
&SaveText12Text=&
&SaveText12x=undefined&
&SaveText12y=undefined&
&SaveText12Rot=undefined&
  1. &SaveIm1Name=&
  2. &SaveIm1Rot=0&
  3. &SaveIm1x=0&
  4. &SaveIm1y=0&
  5. &SaveIm1Width=16&
  6. &SaveIm1Height=23&
  7. &SaveIm2Name=&
  8. &SaveIm2Rot=0&
  9. &SaveIm2x=0&
  10. &SaveIm2y=0&
  11. &SaveIm2Width=10&
  12. &SaveIm2Height=15&
  13. &SaveIm3Name=&
  14. &SaveIm3Rot=0&
  15. &SaveIm3x=0&
  16. &SaveIm3y=0&
  17. &SaveIm3Width=10&
  18. &SaveIm3Height=14&
  19. &SaveIm4Name=&
  20. &SaveIm4Rot=0&
  21. &SaveIm4x=0&
  22. &SaveIm4y=0&
  23. &SaveIm4Width=11&
  24. &SaveIm4Height=10&
  25. &SaveText1Text=&
  26. &SaveText1x=60&
  27. &SaveText1y=9.2&
  28. &SaveText1Rot=0&
  29. &SaveText2Text=&
  30. &SaveText2x=60&
  31. &SaveText2y=49.5&
  32. &SaveText2Rot=0&
  33. &SaveText3Text=&
  34. &SaveText3x=60&
  35. &SaveText3y=90&
  36. &SaveText3Rot=0&
  37. &SaveText4Text=&
  38. &SaveText4x=360&
  39. &SaveText4y=10.6&
  40. &SaveText4Rot=0&
  41. &SaveText5Text=&
  42. &SaveText5x=360&
  43. &SaveText5y=53.5&
  44. &SaveText5Rot=0&
  45. &SaveText6Text=&
  46. &SaveText6x=360&
  47. &SaveText6y=93.9&
  48. &SaveText6Rot=0&
  49. &SaveText7Text=&
  50. &SaveText7x=54&
  51. &SaveText7y=-0.8&
  52. &SaveText7Rot=0&
  53. &SaveText8Text=&
  54. &SaveText8x=54&
  55. &SaveText8y=39.5&
  56. &SaveText8Rot=0&
  57. &SaveText9Text=&
  58. &SaveText9x=54&
  59. &SaveText9y=80&
  60. &SaveText9Rot=0&
  61. &SaveText10Text=&
  62. &SaveText10x=360&
  63. &SaveText10y=0.6&
  64. &SaveText10Rot=0&
  65. &SaveText11Text=&
  66. &SaveText11x=360&
  67. &SaveText11y=43.5&
  68. &SaveText11Rot=0&
  69. &SaveText12Text=&
  70. &SaveText12x=undefined&
  71. &SaveText12y=undefined&
  72. &SaveText12Rot=undefined&


And after:

Code: [ Select ]
&SaveIm1Name=&
&SaveIm1Rot=0&
&SaveIm1x=0&
&SaveIm1y=0&
&SaveIm1Width=16&
&SaveIm1Height=23&
&SaveIm2Name=&
&SaveIm2Rot=0&
&SaveIm2x=0&
&SaveIm2y=0&
&SaveIm2Width=10&
&SaveIm2Height=15&
&SaveIm3Name=&
&SaveIm3Rot=0&
&SaveIm3x=0&
&SaveIm3y=0&
&SaveIm3Width=10&
&SaveIm3Height=14&
&SaveIm4Name=&
&SaveIm4Rot=0&
&SaveIm4x=0&
&SaveIm4y=0&
&SaveIm4Width=11&
&SaveIm4Height=10&
&SaveText1Text=&
&SaveText1x=60&
&SaveText1y=9.2&
&SaveText1Rot=0&
&SaveText2Text=&
&SaveText2x=60&
&SaveText2y=49.5&
&SaveText2Rot=0&
&SaveText3Text=&
&SaveText3x=60&
&SaveText3y=90&
&SaveText3Rot=0&
&SaveText4Text=&
&SaveText4x=360&
&SaveText4y=10.6&
&SaveText4Rot=0&
&SaveText5Text=&
&SaveText5x=360&
&SaveText5y=53.5&
&SaveText5Rot=0&
&SaveText6Text=&
&SaveText6x=360&
&SaveText6y=93.9&
&SaveText6Rot=0&
&SaveText7Text=&
&SaveText7x=54&
&SaveText7y=-0.8&
&SaveText7Rot=0&
&SaveText8Text=&
&SaveText8x=54&
&SaveText8y=39.5&
&SaveText8Rot=0&
&SaveText9Text=undefined&
&SaveText9x=54&
&SaveText9y=80&
&SaveText9Rot=0&
&SaveText10Text=&
&SaveText10x=360&
&SaveText10y=0.6&
&SaveText10Rot=0&
&SaveText11Text=&
&SaveText11x=360&
&SaveText11y=43.5&
&SaveText11Rot=0&
&SaveText12Text=&
&SaveText12x=undefined&
&SaveText12y=undefined&
&SaveText12Rot=undefined&
  1. &SaveIm1Name=&
  2. &SaveIm1Rot=0&
  3. &SaveIm1x=0&
  4. &SaveIm1y=0&
  5. &SaveIm1Width=16&
  6. &SaveIm1Height=23&
  7. &SaveIm2Name=&
  8. &SaveIm2Rot=0&
  9. &SaveIm2x=0&
  10. &SaveIm2y=0&
  11. &SaveIm2Width=10&
  12. &SaveIm2Height=15&
  13. &SaveIm3Name=&
  14. &SaveIm3Rot=0&
  15. &SaveIm3x=0&
  16. &SaveIm3y=0&
  17. &SaveIm3Width=10&
  18. &SaveIm3Height=14&
  19. &SaveIm4Name=&
  20. &SaveIm4Rot=0&
  21. &SaveIm4x=0&
  22. &SaveIm4y=0&
  23. &SaveIm4Width=11&
  24. &SaveIm4Height=10&
  25. &SaveText1Text=&
  26. &SaveText1x=60&
  27. &SaveText1y=9.2&
  28. &SaveText1Rot=0&
  29. &SaveText2Text=&
  30. &SaveText2x=60&
  31. &SaveText2y=49.5&
  32. &SaveText2Rot=0&
  33. &SaveText3Text=&
  34. &SaveText3x=60&
  35. &SaveText3y=90&
  36. &SaveText3Rot=0&
  37. &SaveText4Text=&
  38. &SaveText4x=360&
  39. &SaveText4y=10.6&
  40. &SaveText4Rot=0&
  41. &SaveText5Text=&
  42. &SaveText5x=360&
  43. &SaveText5y=53.5&
  44. &SaveText5Rot=0&
  45. &SaveText6Text=&
  46. &SaveText6x=360&
  47. &SaveText6y=93.9&
  48. &SaveText6Rot=0&
  49. &SaveText7Text=&
  50. &SaveText7x=54&
  51. &SaveText7y=-0.8&
  52. &SaveText7Rot=0&
  53. &SaveText8Text=&
  54. &SaveText8x=54&
  55. &SaveText8y=39.5&
  56. &SaveText8Rot=0&
  57. &SaveText9Text=undefined&
  58. &SaveText9x=54&
  59. &SaveText9y=80&
  60. &SaveText9Rot=0&
  61. &SaveText10Text=&
  62. &SaveText10x=360&
  63. &SaveText10y=0.6&
  64. &SaveText10Rot=0&
  65. &SaveText11Text=&
  66. &SaveText11x=360&
  67. &SaveText11y=43.5&
  68. &SaveText11Rot=0&
  69. &SaveText12Text=&
  70. &SaveText12x=undefined&
  71. &SaveText12y=undefined&
  72. &SaveText12Rot=undefined&


It's as if it needs to undefine 3 text boxes... i.e - the box I deleted remained undefined (as it should do) because it didn't exist. But as *the problem* has then only forced 2 boxes to be undefined, it picks a 3rd box and undefines that!

I don't know what's going on!

Any ideas...!?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Can you make it pass one less variable, don't pass

Code: [ Select ]
&SaveText9Text


at all. Lets see if by passing less variables in the post method if the undefined's go down to 2 or if they stay at 3.
  • DrGonzo
  • Beginner
  • Beginner
  • DrGonzo
  • Posts: 36

Post 3+ Months Ago

Hello!
Sorry it took so long to get back to you - I was interupted by another client...

The good news is that I have fixed the problem:

I realised that Flash was actually deleting (or just not publishing) the effected text boxes - when I put them on the stage with a border on them - the simply didn't appear in the published file! I also noticed that my text boxes were on different layers - some of which contained other information.. I put them all on thier own layer and bingo! everything is defined!

I still don't know exactly why this would happen - but at least it's working...

Thank you soooo much for all your help on this, let me know if you have any ideas why this might have happened....!

Thanks again,

DrGonzo.

Post Information

  • Total Posts in this topic: 14 posts
  • Users browsing this forum: No registered users and 2 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.