1 Reply Latest reply on May 4, 2009 11:40 PM by kglad

    Play only once

    ottz0 Level 1

      I have 1 Joomla template for my client. He wants a flash banner of looping rotating images on 1 layer and then on the next layer on top he wants himself speaking.

       

      However I just need him speaking once per sesion whilst the gallery is still looping within the template page

       

      Is this possible?

        • 1. Re: Play only once
          kglad Adobe Community Professional & MVP

          not if the audio is attached to the timeline.

           

          use the sound class to play the audio and use a boolean variable to prevent the sound code from re-executing:

           

          var soundStarted:Bool;

           

          if(!soundStarted){

          soundStarted=true;

          var s:Sound=new Sound(this);

          s.attachSound("soundID");  // assign linkage id

          s.start();

          }