Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

113
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda