1 Reply Latest reply on Mar 5, 2012 8:48 PM by kglad

    Timing text and sound. What is the best technique consistency across mobile devices?

    Mr. Baker the Shoe Maker Level 1

      I have file with a button that plays a sound. When the sound is played the words are highlighed as the narrator says the words, like in a children's book:

       

      • Currently, I have the sound is intiated by the following code:

       

      StageTextShortE1.stop();

       

      //Buttons: Stops and plays movie clip.

      readtomeShortE1.addEventListener(MouseEvent.CLICK, playShortEReadMe1);

      function playShortEReadMe1 (e:MouseEvent):void{

          SoundMixer.stopAll();

      //    BackgroundSound_ShortE_1.stop();

          StageTextShortE1.play();

          e.stopImmediatePropagation();

          readtomeShortE1.mouseEnabled=false;

      }

       

      StageTextShortE1.addEventListener("lastShortE_1",activateButton_E1);

      function activateButton_E1(e:Event):void{

      readtomeShortE1.mouseEnabled=true;

      }

       

      • A movieclip is played
      • Within the movie clip the sound file is on the timeline and the words are timed to highlight with the text. For example, if the narrators has to read the sentence "Jim is a good person," when the narrator says "Jim" the word is highlighed in green.

       

      I was wondering if there is another way to accomplish this same efffect so that it is more consistent across devices. On some devices, the text is not timed correctly. Most of the time the sound is ahead of the text highlighting. It's difficult to test because on the computer it runs perfectly all of the time. However, it's not until wil get on the device that there becomes an issue.

       

      Is this a matter of just timing the text for each device (Nook, Kindle. Android)?