|
From: Reify32207 on 14 Apr 2008 11:38 I am very rusty using lingo, and I cannot find how to do this in any of my old projects (using director 7 if that helps you date this) I am trying to generate a random number, which becomes visible in a text field on the stage after the user presses a button. The text field is called "hotseat" on the button, I have a script which so far reads on mouseUp set grandom = random (50) end As you can see, I did not make it far. 8-) In an earlier part of the project, I got around this issue by evaluating the variable in an enormous if..then...else if statement. I am trying to find a less tedious way to do it Any help would be appreciated. BobR ps I am still using Director 7
From: Mike Blaustein on 14 Apr 2008 11:44 on mouseUp me set gRandom = random 50 member("fieldMemberName").text=string(gRandom) end
From: Reify32207 on 14 Apr 2008 12:14 Thanks a bunch. I knew it had to be easier than 100 lines of If..then BS worked like a champ.
|
Pages: 1 Prev: Importing Files to a Director Movie Next: How to save XML file in UTF-8 code page |