flash MX sound object
- Started
- Last post
- 5 Responses
- eps
Is there any reason why this script would effect the whole movie instead of just the one sound?
introSound = new Sound();
introSound.attachsound("intro");
introSound.start();
introSound.setVolume(20);For some reason instead of just setting the "introSound" sound to 20 for volume it sets all sounds? Does anyone know why?
- eps0
No MX Users...
- autonoma0
May not do anything, but try making the 's' in 'attachSound' a capital s, like "attachSound", as it should be.
- DonnieTV0
SoundVolume will set the volume for all of the sounds objects on the timeline that you set it in.
If you want to control each sound individually you have to create a new timeline for each.
Create an empty clip called soundObjects_mc and then create individual empty clips within each one for each addtional sound.
- DonnieTV0
sorry not soundVolume - setVolume.
- konsu0
You can assign your sounds to different timelines dynamically too. Try this:
introSound = new Sound("_level33");
...Just put all your sounds on different levels and you should be OK.