Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-27-2005, 01:00 PM   #1
fr4nck
Registered User
 
Join Date: May 2005
Posts: 4
Arrow Problem controlling multiple sounds

Hi, first of all, sorry if my english may be bad,

I have problems controlling multiple sounds over multiple movieclip:

My sounds are declared on the roots:
ActionScript Code:
guitareSon1 = new Sound(volSlider1); guitareSon2 = new Sound(volSlider2); basseSon = new Sound(volSlider3); batterieSon = new Sound(volSlider4); saxSon = new Sound(volSlider5); tamtamSon = new Sound(volSlider6);

Sounds are attached in another movieclip, in a button: here is an example:
ActionScript Code:
on (release){     _root.guitareSon1.attachSound("sonGuitA0"); }

And finally sounds are controlled in another movieclip, each sounds are controlled separatly:
here is the code of one slider, that is supposed to control only the "guitareSon1", but my problem is that the slider control all the sounds simultaneously
ActionScript Code:
onClipEvent (load) {     _parent.volSlider1.drag._x += 50; } onClipEvent (enterFrame) {     vol = _parent.volSlider1.drag._x+50;     _root.guitareSon1.setVolume(vol);     _parent.volAt = Math.round(vol); }

My problem is that the slider control all the sounds simultaneously... everything seem to work fine if the whole code and objects are on the root, but i really need to control this over multiple movieclip!

Anyone can help?

Thanks

Last edited by fr4nck; 05-27-2005 at 04:08 PM.
fr4nck is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:57 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.