I'm trying to change the state of an image with each character that's typed into a data entry box. The user needs to be able to type any combination of 4 characters and then press the enter key to advance to the next slide. The aim is to move the image forwards with each character that's entered and backwards with each character that's deleted when pressing the backspace key. I can get the image to move forwards and backwards using the keyboard, but not with a data entry box on the slide. Is there a way of doing this using a data entry box?
I don't think you would be able to achieve this as SL doesn't evaluate the characters in a text entry field until 'control loses focus' which means the users clicks a button or clicks somewhere outside the TE box.
10 Replies
Hi Linda
I don't think you would be able to achieve this as SL doesn't evaluate the characters in a text entry field until 'control loses focus' which means the users clicks a button or clicks somewhere outside the TE box.
Hi Wendy
Thanks for the reply. I thought this might be the case. I'll try and find another solution.
Hi Linda,
Try this. Input 1 or 2 or 3 and Press Enter Key.
You will see the red bar changing its States.
Hi Rex
Thanks for your reply. I really need to change the image and its position without having to press the enter key after each character.
Hi Linda,
How about this.
As Wendy said, SL doesn't evaluate the characters in a text entry field until 'control loses focus.
So I removed the Text Entry instead of listening directly to user's inputs.
Hey Rex
that's a good solution if they are entering known characters but I think Linda's requirement is specific.
The user needs to be able to type any combination of 4 characters
Thanks Wendy.
I am not an Instructional Designer but being a developer, there must an instruction on how to perform such interaction.
Hi Linda,
You may consider of doing like this.
See attached sample file.
Hi Rex
Thanks for your suggestion; I really need to see the characters that are being typed appear on the screen though.
Hi Linda,
Try this. See if you can use this method.
For this demo, I activated 0-9.
You may add more trigger if you need the letters a-z etc..
Hi Rex
This could be a solution, but I need to display a total of 4 digits in the text box above the image.
This discussion is closed. You can start a new discussion or contact Articulate Support.