0 Replies Latest reply on Jun 17, 2008 3:10 PM by Rantar

    ACTION SCRIPT & TEXT AREA COMPONENT

    Rantar
      pardon my English, I speak Spanish.

      the annoyed by the following item from a MySQL database pump data and position in an array. then this array in the discharge after a few textarea for printing.

      The problem comes when I draw from the table address. I get twice the spacing, I leave all the other simple. only twice, which can be? ... I can not change it, i tryed with "htmlTex" tryed by removing the basis of the characters "-" tryed several things and I can not find a solution, someone could help me? php use the utf8_encode ($ var).
      I copy them here part of the code.

      the textArea of de the problem is eval ("cuadroTexto"+hojaNum).dir.text += array_dir +"\n"

      have the fu...... DOUBLE SPACING.. only that column... the problem comes from the array data... i think the data from MySQL have some not recogniced characater... what characters ar not recogniced from de textArea???

      THANKSSSSSSSS


      //////////////////////////////////////////////////////////////////////////////////////
      imprime.onRelease = function ()
      {
      hojaNum = 0
      fillNum = 0
      layer = 100
      textoNum = 1
      for (i=0;i<=array_n_afil.length-1;i++)
      {
      eval ("cuadroTexto"+hojaNum).n_afil.text += array_n_afil
      +"\n"
      eval ("cuadroTexto"+hojaNum).nya.text += array_nya +"\n"
      eval ("cuadroTexto"+hojaNum).t_doc.text += array_t_doc
      +"\n"
      eval ("cuadroTexto"+hojaNum).n_doc.text += array_n_doc +"\n"
      eval ("cuadroTexto"+hojaNum).f_nac.text += array_f_nac
      +"\n"
      eval ("cuadroTexto"+hojaNum).est_c.text += array_est_c +"\n"
      eval ("cuadroTexto"+hojaNum).nacion.text += array_nacion
      +"\n"
      eval ("cuadroTexto"+hojaNum).f_alta.text += array_f_alta +"\n"
      eval ("cuadroTexto"+hojaNum).loc.text += array_loc
      +"\n"
      {
      hojaNum++
      layer++
      duplicateMovieClip(cuadroTexto0, "cuadroTexto"+hojaNum, layer)
      fillNum = 0
      }
      fillNum++
      textoNum++
      }

      var printJob:PrintJob = new PrintJob();
      if (printJob.start())
      {
      var numPages:Number = 0;
      for(i=0;i<=hojaNum;i++)
      {
      printJob.addPage(eval ("cuadroTexto"+i),{xMin:0,xMax:1200,yMin:0,yMax:700})

      }
      numPages ++;
      // etc.
      if (numPages> 0)
      {
      printJob.send(); // print page(s)
      }
      }
      delete printJob;

      }