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

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

Community Beginner ,
Nov 09, 2017 Nov 09, 2017

Copy link to clipboard

Copied

Hello All,

I am building a project where i would like to use a lot of Dynamic Text fields for students to enter some answer.

It is a Canvas Project (for HTML5 on the Web).

Since the latest update the Dynamic Text Fields do not behave the same.

In my latest project they behave like Static Text, if I do a Test Movie and try to select one of the fields nothing happens.... I can not enter any answers.

Help please, any ideas ?

Thanks

Pierre-Andre

Views

5.7K

Translate

Translate

Report

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

IF (and ONLY IF) you aren't planning on scaling the stage, you can use native HTML input elements by putting them in a DIV element floated over Animate's canvas element. Responsibility for positioning, styling, and retrieving the data from the element is then entirely yours. But there are thousands of tutorials online for doing this sort of thing, so it's very well-documented territory.

Here's a set of helper functions I use to create and remove these elements.

// Create a DIV layer above the canv

...

Votes

Translate

Translate
Enthusiast ,
Nov 09, 2017 Nov 09, 2017

Copy link to clipboard

Copied

Window > Components > User Interface > TextInput

Votes

Translate

Translate

Report

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
Enthusiast ,
Nov 09, 2017 Nov 09, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thanks for the info.

But the "Components - User Interface - Text Input" is not so good because the Text within the Field is So So So Small that the user would need a Microscope the read what he or she is writing.

And thanks for the Gold Fire tip but I want to be able to do everything within Animate CC.

Thanks

Votes

Translate

Translate

Report

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
Adobe Employee ,
Nov 10, 2017 Nov 10, 2017

Copy link to clipboard

Copied

Hi, can you please share a screenshot of how the Text Input component appear at your end?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hello,

the new Text Input Component works really very bad :-((

you can not style it in any way and it is not responsive and really too small!

The external Canvas Input Src Code is much more work to do - why is this feature not implemented in Animate ??

In this way it is completely useless but nevertheless another question:

How can it make the Component Textfield work as global VARIABLE?
I can name it as a MovieClip (not Textfield anymore) but how to retrieve the input data from timeline script working as a global variable??

Help, please. Anyone?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

IF (and ONLY IF) you aren't planning on scaling the stage, you can use native HTML input elements by putting them in a DIV element floated over Animate's canvas element. Responsibility for positioning, styling, and retrieving the data from the element is then entirely yours. But there are thousands of tutorials online for doing this sort of thing, so it's very well-documented territory.

Here's a set of helper functions I use to create and remove these elements.

// Create a DIV layer above the canvas

// Accepts ID, X, Y, width, height, HTML content, and CSS styling (optional)

// CSS styling is a CSS-formatted literal string

mkDiv = function(id, x, y, w, h, html, css) {

    var d = document.createElement("div");

    d.id = id;

    d.style.cssText = "position:absolute; left:" + x + "px; top:" + y + "px; width:" + w + "px; height:" + h + "px; overflow:auto;" + (css ? css : "");

    d.innerHTML = html;

    canvas.parentNode.appendChild(d);

}

// Remove an element by ID name

rmDiv = function(id) {

    try {

        var elem = document.getElementById(id);

        elem.parentNode.removeChild(elem);

    }

    catch(e) {}

}

So for example, to create an input text element, you could do:

mkDiv("myInputDiv", 10, 10, 500, 100, "<input id='myInput' type='text'>", "font-size:32px; background:fuchsia");

Now, if you DO need your canvas to scale..... well, it's not impossible, but it's much, much more complicated to scale HTML elements along with the stage. It's also possible to create a text input-like widget natively within Animate, but again, it would be rather complicated.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 25, 2017 Nov 25, 2017

Copy link to clipboard

Copied

LATEST

Thank you.

But ADOBE please - fix that. It would be very helpful to be able do this in the Animate CC API.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hello,

Sorry for the delay...

Here's 2 screen shot, one in Animate and one in FirefoxScreen Shot 2017-11-20 at 11.14.31.pngScreen Shot 2017-11-20 at 11.14.50.png

Votes

Translate

Translate

Report

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