I familiarized myself with the events element and the events.dispatch action.
Most events appear to be global - but some events (e.g. onclick) could be interpreted to be local or specific to a certain element (e.g. hotspot) in the scene rather than just the overall scene itself.
I know I can define actions for the "onclick" attribute of a hotspot element.
Ideally I'd like to invoke those actions without duplicating them elsewhere.
Is there a way to accomplish this behavior?
I tried something like this:
get(hotspot[hotspotname]).events.dispatch("onclick");
Unfortunately, that didn't appear to work as I had hoped.
Thanks,
Chuck