2 Replies Latest reply on Aug 13, 2006 11:16 AM by paulpeper

    Audio not sync

    paulpeper
      !! I made a mistake when I posted this: play(0,1) should be start(0,1) !!
      Hi,
      I am trying to publish a flash 8 movie with audio. The audio is
      causing me problems. Due to the timing to the internal clock of
      flash there are gaps in the audio stream. I have simplified my
      problem to this (please open the URL below since I cannot visualize
      it on this forum):

      link to where the problem is explained

      Code summary of an audio loop:
      snd1=new Sound(createEmptyMovieClip("sound1",1));
      snd1.attachSound("linkageName1");
      snd2=new Sound(createEmptyMovieClip("sound2",2));
      snd2.attachSound("linkageName2");
      snd1.play(0,1);
      snd1.onSoundComplete=function(){
      snd2.play(0,1);
      snd2.onSoundComplete=function(){
      snd1.play(0,1);
      }
      }

      Thanks very much for your reply, Paul
        • 1. Re: Audio not sync
          kglad Adobe Community Professional & MVP
          there are problems with syncing sound and flash, but that code should have much bigger problems than sound syncing. does your sound even start?

          if it does start do you have code elsewhere or sound attached to a movieclip frame? if you do, remove that code or sound attachment.and use snd1.start() etc.

          there is no play() method for sounds (unless you created one).
          • 2. Re: Audio not sync
            paulpeper Level 1
            sorry, I mixed up a few things. "snd1.play" should be "snd1.start" of course.