1 Reply Latest reply on Nov 30, 2006 4:17 PM by Newsgroup_User

    go to a CuePoint in swa file

    Level 7
      Hello:
      Is possible to go to an specific cuepoint in a swa sound file?
      How can I do this?

      thank you


        • 1. Re: go to a CuePoint in swa file
          Level 7
          On Thu, 30 Nov 2006 13:48:15 GMT, Anne posted in macromedia.director.lingo:

          > Hello:
          > Is possible to go to an specific cuepoint in a swa sound file?
          > How can I do this?

          I seem to recall there were problems with cuePoints in external .swa files.
          I think the best way to deal with this is to import the .wav or .aiff file as
          embedded into a Director castLib.

          If you publish the castLib or Director movie as Shockwave, it will compress
          the audio members according to your Publish Settings.

          Once you've done this, you can utilize member().cuePointNames and
          member().cuePointTimes.

          Then you can set the currentTime of the sound channel as desired.

          However I think the best results are obtained using the sound queue methods.
          Something like:

          sound(1).stop()
          sound(1).queue([#member: member("mySound"), #startTime: newTime])
          sound(1).play()

          That's off the top of my head since I can't get to Director from here. It
          should give you enough to get started, though.


          --
          Mark A. Boyd
          Keep-On-Learnin' :)