0
How do I add JavaScript to an XUL(XML) file?
Contributor
,
/t5/animate-discussions/how-do-i-add-javascript-to-an-xul-xml-file/td-p/13162467
Aug 26, 2022
Aug 26, 2022
Copy link to clipboard
Copied
Hello, I am developing a plugin for Adobe Animate. When I click not a script, I have a dialog box (written in XML).
1) Checkboxes should appear in this window depending on how many files are open in Animate.
2) You need to make sure that some elements are blocked (for example, button 1), and when you click on the checkbox (unlock button 1), button 1 is unlocked. Please help solve the problem.
TOPICS
Code
,
Exchange extensions
,
How to
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/how-do-i-add-javascript-to-an-xul-xml-file/m-p/13199317#M356869
Sep 14, 2022
Sep 14, 2022
Copy link to clipboard
Copied
Can you post your sample code? If you're trying to embed JS in XML, you're probably going to need to run it through an encodeURI() and then decode it with decodeURI() when you want to parse so you don't throw any formatting errors in XML.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

