Sie sind nicht angemeldet.

1

Freitag, 4. April 2014, 08:14

Limit events to one scene only?

I am putting together a tour with multiple scenes, and In one scene only I would like to have a logo appear after a period of inactivity. The logo will disappear as soon as the use interacts again, by catching onmousedown and onviewchange events.

Is there a way to limit these events to the one scene only, or must they run for the whole tour with tests to check for the required scene? Or is there a better way, please?

Regards to all

Andrew

2

Freitag, 4. April 2014, 12:29

I haven't tried it, new feature:
New: onnewscene event - similar to onxmlcomplete but will be only called when loading new scenes.
Maybe there you can set your event, by checking scene name and then remove it

3

Freitag, 4. April 2014, 18:51

Hi,

yes, define a 'named' <events> element inside the <scene>,

e.g.

Quellcode

1
2
3
4
5
<scene ...>
   <events name="scene_events" 
            	... 
            	/>
</scene>


Because it's a named element and defined without keep, it will exist only in that scene.

Best regards,
Klaus

4

Freitag, 4. April 2014, 22:41

Thanks, that works perfectly!

And thanks very much, Klaus, for the final release of 1.17.