A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: frame actions and sound (MX)

  1. #1
    I am having real problems.
    I have a long sound (a song) in a mc called sound on the main timeline. The main timeline loops whilst the sound plays.
    I want to break the loop when the sound is finshed.

    I have put the following on the a frame at the end of the sound mc before the very last one.

    _root.gotoAndPlay(261);

    but it seems to ignore it completely I have set the sound to be 'stream'

    Anybody any suggestions?


  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    43
    if i follow correctly, it sounds like the only reason your movie loops is to play the sound.
    if you set the sound to stream, the sound is "attached" to the main timeline, so i'm assuming the sound clip starts over when the playhead hits the "gotoandplay" action.

    the easiest solution is to put the sound clip in a movie clip and set it the sound to "event," and make sure loop is set to zero.

    hope that answers your q

    jwt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center