This content has been marked as final. Show 2 replies
Here is a simple way to do it.
In this example if the user types the correct word (Dave) and presses
the button text turns green, if the word is wrong it turns red.
You haven't said what you wanted the program to do, so you will want to
modify the code. However using the method in the example allows you to
create a single behavior that can be used over and over without hard
coding things like the word being checked.
For example, if you want to change the word to Ibrahim do this.
With the program stopped, right click the text input and choose
Properties. In the Property Inspector choose the Behavior tab. Double
click the behavior and the Parameters box will display. Here you can set
the word and other properties of the behavior.
Like I said, this is probably only a starting point for you. Do you get
the general idea?
> If I want to user to type a word - say something like "Tokyo" in a text field,
> how do I get Director to check that it is the same word that I want the user to
> Thanks in advance.