6 Replies Latest reply on Mar 24, 2016 11:02 AM by resdesign

    Change audio files dynamically


      Hi All,


      I have this issue. I have a 1' long animation with a voice over. The voice over is split in chunks and each clip is placed on the timeline accordingly with the animations.


      For some clips though, I would like to be able to change the audio source dynamically based on some some variables.


      For example, at one point I would like the voice to say today's day and therefore play "thursday.mp3", for example, instead of the clips corresponding to the other days.


      What's the best way of doing it?

      1. Place all the 7 clips on the timeline playing at the same time and muting the 6 based on the date or

      2. Use one symbol and changing dynamically (for example on CreationComplete of the stage) the source file?


      Could you provide the code too?