Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Keyboard Event to reveal predetermined text

New Here ,
Sep 23, 2019 Sep 23, 2019

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!

TOPICS
ActionScript , Code , How to
216
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 23, 2019 Sep 23, 2019
LATEST

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines