5 Replies Latest reply on May 16, 2007 9:06 AM by Newsgroup_User

    play() and stop() sound inside Flash *.swf = Question

    Level 7
      This is a multi-part message in MIME format.

      ------=_NextPart_000_009A_01C7963F.06805C10
      Content-Type: text/plain;
      charset="iso-8859-1"
      Content-Transfer-Encoding: quoted-printable

      Hello,
      I have a *.swf file including sound playing and I can play and stop =
      sound like this:

      on stopSound()
      member("00_CanCanan").sound =3D FALSE
      sprite(2).stop()
      end
      on playSound()
      member("00_CanCanan").sound =3D TRUE
      sprite(2).play()
      end

      This works pefect until the *.swf come to a point where it is looping, =
      like:

      from frame 1 to 100 - one time playing (here the sound plays and stops =
      directly)

      from frame 101 to 160 - loops (here the sound stops directly, but plays =
      only when coming at the beginning of the loop point 101)

      Any idear how I can make the sound also playing directly when inside of =
      the loop?

      Thank you for any hint,

      Walter







      ------=_NextPart_000_009A_01C7963F.06805C10
      Content-Type: text/html;
      charset="iso-8859-1"
      Content-Transfer-Encoding: quoted-printable

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
      <HTML><HEAD>
      <META http-equiv=3DContent-Type content=3D"text/html; =
      charset=3Diso-8859-1">
      <META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
      <STYLE></STYLE>
      </HEAD>
      <BODY>
      <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>I have a *.swf file including sound =
      playing and I=20
      can play and stop sound like this:</FONT></DIV>
      <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
      <DIV><FONT face=3DArial size=3D2>on =
      stopSound()<BR>member("00_CanCanan").sound =3D=20
      FALSE<BR>sprite(2).stop()<BR>end</FONT></DIV>
      <DIV>
      <P><FONT face=3DArial size=3D2>on =
      playSound()<BR>member("00_CanCanan").sound =3D=20
      TRUE<BR>sprite(2).play()<BR>end</FONT></P>
      <P><FONT face=3DArial size=3D2>This works pefect until the *.swf come to =
      a point=20
      where it is looping, like:</FONT></P>
      <P><FONT face=3DArial size=3D2>from frame 1 to 100 - one time =
      playing (here the=20
      sound plays and stops directly)</FONT></P>
      <P><FONT face=3DArial size=3D2>from frame 101 to 160 - loops (here the =
      sound stops=20
      directly, but plays only when coming at the beginning of the loop point=20
      101)</FONT></P>
      <P><FONT face=3DArial size=3D2>Any idear how I can make the sound also =
      playing=20
      directly when inside of the loop?</FONT></P>
      <P><FONT face=3DArial size=3D2>Thank you for any hint,</FONT></P>
      <P><FONT face=3DArial size=3D2>Walter</FONT></P>
      <P><FONT face=3DArial size=3D2></FONT> </P>
      <P><FONT face=3DArial size=3D2></FONT> </P>
      <P><FONT face=3DArial size=3D2></FONT> </P></DIV></BODY></HTML>

      ------=_NextPart_000_009A_01C7963F.06805C10--