A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Sound Control and Scenes- HELP!

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    4

    Sound Control and Scenes- HELP!

    I have looked through tons of tutorials but can't find the right answer to my little problem. I am working in Flash 8

    I have a large flash document with about 20 scenes in it. On the Main scene I want to play some music until the animation runs. However if a user clicks the nav to get to another scene before the animation is done running i want the sound to stop. I only want that sound to play when the user is on that scene and that scene only. The problem is that a stopallsounds() command on the other scenes doesnt help me because i have different sounds on each scene. So putting a stopallsounds() command isnt the answer. I tried adding a play/stop toggle but that doesnt stop it from playing if you change scenes. That only allows the user to control it on that first scene where the toggle is.

    This is driving me nuts. Do i create the sound as an external SWF and do a loadmovie on the scene i want it to play? But then how i stop it from playing when the user clicks to another scene? is there an unloadmovie command i can use?

    Please help! I have been working for hours on this with no real success.

    Thanks.
    Lauren

  2. #2
    a.k.a gltovar deadlock32's Avatar
    Join Date
    May 2001
    Location
    Naperville,IL
    Posts
    489
    are you able to stop the specific sound when the use skips a scene... before the code to skip is processed.

    on(press){
    stop your sound
    goto next scene
    }

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    4
    I have not seen that code before. Do i put it on all navigation in order to stop the previous sounds?

    yesterday i tried an attachmovie and a removeMovieClip code and that didnt work... ugh.

  4. #4
    Junior Member
    Join Date
    May 2006
    Posts
    4
    I think i finally got this figured out thanks to one of those tutorials above. That site is awesome.

  5. #5
    Junior Member
    Join Date
    May 2006
    Posts
    4

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