1 Reply Latest reply on Oct 29, 2007 3:36 AM by XxbTmxX

    Concat Variables from php script

    XxbTmxX
      Hi everyone !

      Here is my problem,
      My php script return me something like : Town1='blabla'&Town2='bloublou' etc...

      I'd like to add each town (loaded by LoadVars) in a ComboBox. here is my script (in AS2) :

      for (i=0; i<_root.tab_result.liste_lenght; i++) {
      myCB.addItem(_root['tab_result.ville'+i],_root['tab_result.ville'+i]);
      }

      But i don't manage to concat the first part of the variable name 'Town' and the value of i !

      If somebody could help me ... :D thanks a lot.


      Ps if it can help here is the result of _root.tab_result.toString()...

      ville30=%27VERNEUIL%2DSUR%2DSERRE%27&ville29=%27VAUCELLES%2DET%2DBEFFECO%27&ville28=%27URC EL%27&ville27=%27ROYAUCOURT%2DET%2DCHAILV%27&ville26=%27PARGNY%2DFILAIN%27&ville25=%27MONT BAVIN%27&ville24=%27MONS%2DEN%2DLAONNOIS%27&ville23=%27MONAMPTEUIL%27&ville22=%27MOLINCHAR T%27&ville21=%27MERLIEUX%2DET%2DFOUQUERO%27&ville20=%27LIERVAL%27&ville19=%27LAON%27&ville 18=%27LANISCOURT%27&ville17=%27FILAIN%27&ville16=%27ETOUVELLES%27&ville15=%27CLACY%2DET%2D THIERRET%27&ville14=%27CHIVY%2DLES%2DETOUVELLES%27&ville13=%27CHEVREGNY%27&ville12=%27CHER Y%2DLES%2DPOUILLY%27&ville11=%27CHERET%27&ville10=%27CHAVIGNON%27&ville9=%27CHAMBRY%27&vil le8=%27CHAILLEVOIS%27&ville7=%27BUCY%2DLES%2DCERNY%27&ville6=%27BRIE%27&ville5=%27BRAYE%2D EN%2DLAONNOIS%27&ville4=%27BOURGUIGNON%2DSOUS%2DMON%27&ville3=%27BARENTON%2DCEL%27&ville2= %27BARENTON%2DBUGNY%27&ville1=%27AULNOIS%2DSOUS%2DLAON%27&ville0=%27ARRANCY%27&liste%5Flen ght=31&envoi=precision&onLoad=%5Btype%20Function%5D