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?
Solved! Go to Solution.
Views
Replies
Total Likes
Can you replace the line with this
app.setTimeOut("xfa.form.gameform.money_game.player_name.writeFred("+x+") " ,2000);
This might work...VJ
Views
Replies
Total Likes
Can you replace the line with this
app.setTimeOut("xfa.form.gameform.money_game.player_name.writeFred("+x+") " ,2000);
This might work...VJ
Views
Replies
Total Likes
Perfect, thank you.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies