Skip to main content
Known Participant
January 10, 2013
Answered

Lower background music while video is playing

  • January 10, 2013
  • 1 reply
  • 2578 views

Hello,

I have created a flash website using AS3 and I want my background music to to soften while a video is playing and pick back up again when someone clicks to go to another page. Any suggestions?

Thank you

This topic has been closed for replies.
Correct answer kglad

then use:

var st:SoundTransform=this.transform.soundTransform;

st.volume=.2;

this.transform.soundTransform=st;


my error.  use:

var st:SoundTransform=this.soundTransform;

st.volume=.2;

this.soundTransform=st;

1 reply

kglad
Community Expert
Community Expert
January 10, 2013

use your sound's soundchannel soundtransform property or your movieclip's soundtransform property.

if you don't understand the above, do you create your sound using actionscript or using a timeline?

Known Participant
January 10, 2013

Using a timeline.

kglad
Community Expert
Community Expert
January 11, 2013

then that sound is on the timeline of a movieclip (eg, mc) and you can use:

var st:SoundTransform=mc.soundTransform;

st.volume=.2;

mc.soundTransform=st;