Hi Régis,
Triggering audio in XPression based on Visual Logic can be a daunting task, I know.
Using Dashboard could be a solution, but sometimes you don't want to go through all of that hassle of setting up Dashboard and you just want it to work from inside XPression.
From what I can tell from your screenshots, you're using the materials Play and Stop-actions inside your Visual Logic.
Since you say they start to play as soon as your scene is put online, my first guess would be that the videoclips are set to Autoplay? They should be set to Stopped.
If that doesn't solve the issue, you could try a slightly different approach by putting your video's on a separate Scene Director. So for example use one Scene Director for the "AUDIO_RICHTIG" and another one for "AUDIO_FALSCH".
Then instead of using the Material Actions in your Visual Logic, you need to use the Scene Director Actions which you can find under the Scene-menu.
This is my preferred approach, especially because it also gives you the opportunity to use a simple audio file for your soundFX instead of a transparent videofile which makes the scene less heavy. Also using an audio-file you have a little bit control on the volume level as well by adjusting the volume level in the Scene Director itself.
But one word of caution when you use audio files on a Scene Director track, don't put it on position 0, otherwise everytime you recue the Scene Director, you'll hear the first frame of the audio. If you put it on frame position 1, you won't have that issue.
------------------------------
Kenneth Buck
Senior Graphics Developer
Bold Graphics
Belgium
------------------------------