A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: individual sound control problem

  1. #1
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457

    individual sound control problem

    So I've been trying to create something in which I can control different track volumes individually, but I only seem to be able to control two.

    Code:
    q++;
    snd1 = new Sound(createEmptyMovieClip(["s"+q],getNextHighestDepth()));
    snd1.attachSound("s1");
    snd1.start(0,1000);
    q++;
    snd2 = new Sound(createEmptyMovieClip(["s"+q],getNextHighestDepth()));
    snd2.attachSound("s2");
    snd2.start(0,1000);
    q++;
    snd3 = new Sound(createEmptyMovieClip(["s"+q],getNextHighestDepth()));
    snd3.attachSound("s3");
    snd3.start(0,1000);
    and to reference to that

    Code:
    snd1.setVolume(0);
    snd2.setVolume(0);
    snd3.setVolume(0);
    I get two of the sounds silent, but one still continues to sound (I beleive it is sound3)

    What am I doing wrong/what do I not know?

    thanks



    and just so you know, the only reason I haven't condensed any of this into a for loop is because I've just been too lazy.

  2. #2
    file not found Captain_404's Avatar
    Join Date
    Apr 2006
    Posts
    457
    Why can't we edit/delete our own posts?

    Anyway, I solved the problem, sorry for taking up space and thanks to the single person who viewed this thread before now

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