You are not logged in.

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

1

Monday, April 7th 2014, 11:54am

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

Tuesday, April 8th 2014, 7:44pm

Hi,

add a loadscene() call in the onclick event,

e.g.

Source code

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


Best regarsd,
Klaus

virtual pete

Intermediate

  • "virtual pete" started this thread

Posts: 245

Location: Nerja

Occupation: Holiday rentals Nerja Costa del Sol

  • Send private message

3

Tuesday, April 8th 2014, 11:42pm

Thanks Klaus :)

Similar threads