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

apostrophe in a ComboBox, HTML5 CANVAS

Community Beginner ,
Feb 23, 2022 Feb 23, 2022

Copy link to clipboard

Copied

When using a combobox in animate, you cannot use the apostrophe. If I write as label "Tom's train", the result will be
"Tom" + "'" + “train” .
Is this an Animate bug?
Thanks for your help.

TOPICS
Code , Error , Import and export , Missing feature , Product issue

Views

119

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 Expert ,
Feb 23, 2022 Feb 23, 2022

Copy link to clipboard

Copied

Hi.

 

It's because Animate uses single quotes in the output so it replaces the apostrophe character by the HTML entity '.

image.png

 

One possible solution is to change the item you want at runtime. Like this:

stage.on("drawend", function()
{
	var combobox = document.getElementById("yourComboBoxID");
	combobox.options[0].textContent = "Tom's train";
}, this, true);

 

I hope it helps.

 

Regards,

JC

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 ,
Mar 02, 2022 Mar 02, 2022

Copy link to clipboard

Copied

Thanks very much. Your command works perfectly.
But it's a pity that in the properties of the combobox the apostrohe was not provided while for other ASCCI characters this is not a problem.

 

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 Expert ,
Mar 03, 2022 Mar 03, 2022

Copy link to clipboard

Copied

LATEST

You're welcome.

 

Yeah, the IDE should have a solution for this.

 

Please suggest this improvement to the team here:

https://www.adobe.com/products/wishform.html

 

Regards,

JC

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