Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Scrolling text

Avatar

Level 2

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

0 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