Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

103
Vistas
ForgeJS: Applying "onClick": ["action-loadscene-1"] to link

I'm working with this library that allows applying such an event to a hotspot, and I can't figure out how to use it on a simple text link instead. Hoping this is a simple question, do you know how to solve this?

The documentation does solely apply this function to hotspots like this:

"events":{
     "onClick": ["action-loadscene-2", "action-camera-0"]
}

Can I either apply this in HTML or the js file to a link? My humble failed try looks like this (not sure yet if I'll need to apply a camera as well):

<a onclick:action-loadscene-2>Go to the next scene</a>

Documentation: https://releases.forgejs.org/latest/doc/json/#hotspot/hotspot-events

Sample applying the onclick event to a hotspot: https://forgejs.org/samples/hotspots-with-actions

Corresponding Codepen: https://codepen.io/forgejs/pen/XpbJrX

Where I'm trying to get this to work: http://www.michaelkueng.ch/360/test/

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda