Expand my Community achievements bar.

SOLVED

Scrolling text

Avatar

Former Community Member

I was trying to get a box to fill in someone's name slowly so it looked like a person was typing.  I tried this code but it never worked out.

var x = 0

while (x<2)

  {

   x = x + 1;

  app.setTimeOut("xfa.form.gameform.money_game.player_name.writeFred(x)", 2000);

  }

function writeFred(t)

{

  if ( t == 1 ){

xfa.form.gameform.money_game.opponent_name.rawValue = "F";

}

if ( t == 2 ){

xfa.form.gameform.money_game.opponent_name.rawValue = "Fr";

}

}

Any ideas to get that to work?

1 Accepted Solution

Avatar

Correct answer by
Level 5

Can you replace the line with this

app.setTimeOut("xfa.form.gameform.money_game.player_name.writeFred("+x+") " ,2000);

This might work...VJ

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

Can you replace the line with this

app.setTimeOut("xfa.form.gameform.money_game.player_name.writeFred("+x+") " ,2000);

This might work...VJ