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.
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 '.
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
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.
Copy link to clipboard
Copied
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