Welcome, Guest
  • Author Topic: BUG in static textfields????  (Read 2411 times)

    Heitor

    • Server what's that
    • *
    • Posts: 28
    • Ive heard about Flash once...
      • View Profile
      • Email
    BUG in static textfields????
    « on: 09/28/04, 09:19 »
    Hi,
    I have some text fields grouped over a rectangle object. Everything was working fine until I added some additional asfunction in some textfields text. The grouping remains the same, but now when I the group show up on the stage, one of the text fields appears displaced to the right. When I remove the asfunction link and redo the grouping, it all works fine again.... does anyone have experience with that?`

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re:BUG in static textfields????
    « Reply #1 on: 09/28/04, 12:29 »
    Hi Heitor,
    what are you doing with the AS-Function?

    Youre description does not give a picture to help on ;)
    happy flashing
    8)
    Ronald

    Heitor

    • Server what's that
    • *
    • Posts: 28
    • Ive heard about Flash once...
      • View Profile
      • Email
    Re:BUG in static textfields????
    « Reply #2 on: 09/28/04, 13:04 »
    This is the asfunction I use on the text in a textfield: asfunction:answerCod,2,1

    and this is the function I call:

    function answerCod (paramArray) {
       argumentArray = new Array();
       argumentArray = paramArray.split(",");
       cardNum = argumentArray[0];
       answerNum = argumentArray[1];

       for (j=1; j<=9; j++) {
          for (i=1; i<=6; i++) {
             eval("answer"+j+"_"+i).gotoAndPlay(1);
          }
       }

       if (answerNum == "n") {
          _root.textAnswer.gotoAndPlay(3);
       } else {
          for (j=1; j<=9; j++) {
             if (Number(cardNum) == j) {
                for (i=1; i<=6; i++) {
                   if (Number(answerNum) == i) {
                      eval("answer"+j+"_"+i).gotoAndPlay(3);
                      trace("answer to play: "+"answer"+j+"_"+i);
                      break;
                   }
                }
                break;
             }
          }
       }
       // set answer array;
       // textAnswer.answer = "";
    }

    Interesting is that I figured out how to pseudo-solve the problem: I check the combo box to use the font of the computer and it works.... if I uncheck it, flash displaces again the textfield.

    Heitor

    • Server what's that
    • *
    • Posts: 28
    • Ive heard about Flash once...
      • View Profile
      • Email
    Re:BUG in static textfields????
    « Reply #3 on: 09/28/04, 13:05 »
    This is the asfunction I use on the text in a textfield: asfunction:answerCod,2,1

    and this is the function I call:

    function answerCod (paramArray) {
       argumentArray = new Array();
       argumentArray = paramArray.split(",");
       cardNum = argumentArray[0];
       answerNum = argumentArray[1];

       for (j=1; j<=9; j++) {
          for (i=1; i<=6; i++) {
             eval("answer"+j+"_"+i).gotoAndPlay(1);
          }
       }

       if (answerNum == "n") {
          _root.textAnswer.gotoAndPlay(3);
       } else {
          for (j=1; j<=9; j++) {
             if (Number(cardNum) == j) {
                for (i=1; i<=6; i++) {
                   if (Number(answerNum) == i) {
                      eval("answer"+j+"_"+i).gotoAndPlay(3);
                      trace("answer to play: "+"answer"+j+"_"+i);
                      break;
                   }
                }
                break;
             }
          }
       }
       // set answer array;
       // textAnswer.answer = "";
    }

    Interesting is that I figured out how to pseudo-solve the problem: I check the combo box to use the font of the computer and it works.... if I uncheck it, flash displaces again the textfield.