# Graphic Equaliser in flash

**URL:** <https://forum.kirupa.com/t/graphic-equaliser-in-flash/80602>\
**Category:** Uncategorized\
**Created:** [February 23, 2005, 11:34am UTC](https://forum.kirupa.com/t/graphic-equaliser-in-flash/80602 "2005-02-23T11:34:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeetd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abhijeetd/32/1135_2.png) [@abhijeetd](https://forum.kirupa.com/u/abhijeetd)\
**Post date:** [February 23, 2005, 11:34am UTC](https://forum.kirupa.com/t/graphic-equaliser-in-flash/80602/1 "2005-02-23T11:34:23Z")

</div>

Can somebody please tell me what goes wrong in following script??  
Brief Description : there are 5 sound components (5 sounds) named dh1.mp3, dh2.mp3… in library.  
ther are attached to an object named DD which we create in each of the 5 movieclips named vsl1, vsl2, vsl3, vsl4, and vsl 5

Problem : Only the slider to which the volume is set at last step works.

# FLA is too large to attach Abhijeet

# //LOOP FOR GRAPHIC EQUALISER for (i=1; i\<=5; i++) { eval(“vsl”+i).DD = new Sound(); //eval(“DD”+i) = new Sound(); } for (i=1; i\<=5; i++) { tmp = eval(“vsl”+i+".DD"); //tmp = eval(“DD”+i); trace(“tmp= “+tmp); tmp.attachSound(“dh”+i+”.mp3”); tmp.start(0, 50); eval(“vsl”+i).onEnterFrame = function() { this.DD.setVolume(this.\_y-y1\_mc.\_y); trace(this.\_name+" "+typeof (this.DD)); trace(“this VOLUME=”+this.DD.getVolume()); }; eval(“vsl”+i).onRelease = function() { this.stopDrag(); }; eval(“vsl”+i).onReleaseOutside = function() { this.stopDrag(); }; eval(“vsl”+i).onPress = function() { this.startDrag(false, this.\_x, y1\_mc.\_y, this.\_x, y2\_mc.\_y); }; }
