I am trying to get a Javascript to run a flexscript through this fireflexsimevent() command I have been seeing around the forums. I have the flexscript to open and close the port of a processor. However, I am clueless with how to work with JS to execute this flexscript command. the examples I downloaded from forums (https://answers.flexsim.com/questions/21092/web-communication-within-flexsim.html) are probably different version to mines as I cannot see what they are doing. (I use version 16.1.2).
Could anyone point my in the right direction on how this is done?