I have a project that uses a lot of external javascript files.
In Hype I have a control with an id=occludeBtn. Several actions happen on a click: play a sound, continue a timeline, run javascript, etc.
I’m trying to trigger a mouse click event (or mouse up event) on this control from my external javascript using javascript or jQuery, e.g.
jQuery("#occludeBtn").mouseup();
/*I've also tried .click(), .trigger("click"), and .trigger("mouseup") */
I was hoping that if I triggered an event this way that it would run all the actions in Hype. This doesn’t seem to be working though.
I can tell the click event is being captured in javascript because I can bind other events to the click, but just doesn’t seem to propagate down to trigger the Hype events.
I don’t think it will work for me to try to call the Hype actions directly from my javascript. I’m really hoping to use the click event.