Skip to main content
Multoman
Inspiring
August 27, 2022
Question

How do I add JavaScript to an XUL(XML) file?

  • August 27, 2022
  • 1 reply
  • 205 views

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.

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
September 14, 2022

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.