Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Montag, 7. April 2014, 11:54

Link animated hotspot to a scene

Hi, I am struggling with the exanple of the animated hotspot to link it to a specific scene when clicked. Can someone help me with the code. For example I have a scene called LOUNGE. I am using the code as below but not sure where to tell it to go to the scene once clicked.

<hotspot name="spot1" style="hotspot_ani_black" ath="-25" atv="-10" onclick="showlog(); trace('hotspot ',get(name),' clicked');" />

Any help appreciated

2

Dienstag, 8. April 2014, 19:44

Hi,

add a loadscene() call in the onclick event,

e.g.

Quellcode

1
<hotspot ... onclick="...; loadscene(NAME-OF-THE-SCENE, null, MERGE, BLEND(1));" />


Best regarsd,
Klaus

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

3

Dienstag, 8. April 2014, 23:42

Thanks Klaus :)

Ähnliche Themen