A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Help please! Audio problem!

  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Montreal, Canada
    Posts
    54
    Hi guys..

    Does anyone know if it is possible to have 3 sound objects and control the volume level of each seperately? Right now, I have 3 objects, 'track', 'fadein' and 'fadeout'.

    I put:

    track.setVolume(100);
    fadein.setVolume(10);
    fadeout.setVolume(10);

    like this, fadein and fadeout seem to be forced at 100 because it follows the first setting. I put track at the bottom, and my main music was at 10.

    I'M GOING NUTS! hehe.


    Thanks, Tony

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    associate each sound object with a unique mc, otherwise you create a global sound object which controls volume of all sound in the player.

    track = new Sound(targetpath to unique mc);
    fadein = new Sound(targetpath to unique mc);
    fadeout = new Sound(targetpath to unique mc);

    check out remixology #1-2 for more information on the sound object. (see sig for link)

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Montreal, Canada
    Posts
    54
    Thanks man, I'll check it out...



    Originally posted by hp3
    associate each sound object with a unique mc, otherwise you create a global sound object which controls volume of all sound in the player.

    track = new Sound(targetpath to unique mc);
    fadein = new Sound(targetpath to unique mc);
    fadeout = new Sound(targetpath to unique mc);

    check out remixology #1-2 for more information on the sound object. (see sig for link)

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