Skip to main content
Participant
September 23, 2019
Question

Keyboard Event to reveal predetermined text

  • September 23, 2019
  • 1 reply
  • 229 views

I'm trying to create a script that would have predetermined text reveal as somebody was typing. No matter what key they press, the correct letters come up, and each letter would be reveiled by a keypress.  This would make it look as if someone were typing in a document in real time. I'm completely stuck on this and would really appreciate the help. 

Thanks in advance!

This topic has been closed for replies.

1 reply

avid_body16B8
Legend
September 23, 2019

Canvas or AS3?

Not sure what you set up is, so hard to know but...

In canvas,  if you have a text in a symbol you could have a mask to releave each letter. so a letter per frame. each frame has a stop. Then on keypress you could use gotoAndStop(x++) which would go to the next frame.

 x++

 this.symbolName.gotoAndStop(x);