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

Multi-Line Text Input in HTML5 Canvas (Animate CC)

New Here ,
Nov 22, 2017 Nov 22, 2017

I Am working on an Interactive activity using HTML canvas that requires a box to write a paragraph answer to a specific question. I have tried using the text input component built into animate but it only seems to work on one line and carries on beyond the boundaries of the box. Is there a way to make the box multi-line and return to the following line when it hits the edge? I am a beginner to html and cant figure this out.

3.7K
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

correct answers 1 Correct answer

LEGEND , Nov 22, 2017 Nov 22, 2017

You can't do what you want using the input component. To do multi-line input you have to use a textarea, which is a different HTML element.

If you're willing to roll your own solution, the approach in this thread may work for you:

Dynamic Text Field in Animate CC Version 18 Build 107 aon Mac

Translate
Adobe Employee ,
Nov 22, 2017 Nov 22, 2017

Found a discussion on Stack Overflow that could provide you with insights.

actionscript 3 - How do I make a TextField multiline? - Stack Overflow

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 ,
Nov 22, 2017 Nov 22, 2017

You can't do what you want using the input component. To do multi-line input you have to use a textarea, which is a different HTML element.

If you're willing to roll your own solution, the approach in this thread may work for you:

Dynamic Text Field in Animate CC Version 18 Build 107 aon Mac

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
Community Beginner ,
Feb 15, 2018 Feb 15, 2018
LATEST

people write share help me so much thanks every one

1.jpg

here you can find detail.

https://forums.adobe.com/message/10179624#10179624

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