Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

oldnewbie..... 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
let's see if ya can get that not to cut off the sounds in the rest of my movie..a star awaits your reply...

thanks again bro for your help...could kick myself that was so simple..but hey, guess you never stop learning..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Ok! Basicly got it working, but only by adding the slider into the soundtrack movie itself. It then seems to change only the volume of the music track without affecting other sounds in the main movie. Of course you'll have to make your soundtrack movies of the same size as the main movie and/or position the slider accordingly, so that it fall in place in the main movie.

Had to put the sountrack in a mc, so your music1.swf is now a 1 frame movie with a mc (the old music1.swf) instance named music1, and which has the following code on it:
track = new Sound(_root.music1);
stop ();

The slider (instance handle), basicly the same as in the .fla I sent you, has the following code:

onClipEvent (load) {
top = Math.round(_y);
// default position
left = Math.round(_x);
right = left;
// prevent horizontal drag
bottom = top+100;
// 100 pixels below top
}
// This is what I added...
// I established the 256 number by finding out
// the lowest y position of the slider. It should be
// changed according to where you set
// the slider on the screen.

onClipEvent (enterFrame) {
_root.ypos = 256-Math.round(_root.handle._y);
_root.track.setVolume(_root.ypos);
}

If you can't work it out with these indications, I'll clean up the .fla and send it to you in the morning!

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top