dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: 2 volumes controll

  1. #1
    Member
    Join Date
    May 2000
    Posts
    46

    Red face

    I added my first sound to a aready actionscript that control the valume. and its work OK

    Now I need to add one more sound.
    How do I add and defind more sounds at the variable and value. (using the attached sound way).
    What I need is one volume controller that controls more than one sound.

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    It may seem slightly strane (or it did to me anyway) that when you work with the sound object if you do something like

    music = new Sound();
    music.attachSound("linkage_id1");
    music.start(0,999);

    effect = new Sound();
    effect.attachSound("linkage_id2");
    effect.start(0,999);

    doing

    music.setVolume(40);
    will set the volume of both sounds to 40 to have the volume work separately on sounds they need to be created in different clips with something like music = new Sound(this);

  3. #3
    Member
    Join Date
    May 2000
    Posts
    46

    thanks

    Thanks, its work (and now looks very simple..)

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