HELP ME WITH FLASH!
- Started
- Last post
- 3 Responses
- steadyvibe
hey does anyone know how i can get the audio in one row of the timeline to change volume withough changein the volume of the whole movie??
I made a blank movie clip named musicMC and put it on its own level, then put this line of code on the first frame:
music=new Sound(musicMC);
Then I put this code on the frame I want the audio to start on:
music.attachSound("audio1");
music.start(0,999);
music.setVolume(30);And this code on the stop button:
on (keyPress "") {
if (paused == 0) {
stop();
paused = "1";
_root.music.setVolume(0);
} else {
play();
paused = "0";
_root.music.setVolume(30);}
}??? What did I do wrong ???
- steadyvibe0
anyone??
- Mick0
Did you add an Identifier in the sound properties in your library?
- connerd0
vibe,
its because you identified the 'music' object inside a movie clip (musicMC) when you defined the sound.
then when you try to reference it to turn the sound down later, you are looking for it on the root.
(_root.music.setVolume());when you put some code, variables, or objects inside a movie clip, they are no longer on the _root level.
so you need to access them via
_root.musicMC.music etc.provided you gave musicMC an instance name, but that's the first thing you learn in AS school now isn't it.
mc.