# Controling sound file on stage

**URL:** <https://forum.kirupa.com/t/controling-sound-file-on-stage/239900>\
**Category:** Uncategorized\
**Created:** [September 27, 2007, 12:46am UTC](https://forum.kirupa.com/t/controling-sound-file-on-stage/239900 "2007-09-27T00:46:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ultra](https://avatars.discourse-cdn.com/v4/letter/u/a587f6/32.png) [@Ultra](https://forum.kirupa.com/u/Ultra)\
**Post date:** [September 27, 2007, 12:46am UTC](https://forum.kirupa.com/t/controling-sound-file-on-stage/239900/1 "2007-09-27T00:46:38Z")

</div>

Hi,

I’ve placed a soundfile on the stage in my timeline and set it to ‘loop’.

I wanna control this soundfile via actionscript (setting the volume to ‘0’ or ‘100’ via the ‘if’ statement if certain parameters are met).

How can I assign an instance\_name or variable for that soundfile ?

I gave it the linkage ‘sound\_main’ but I can’t control it with that…

I don’t wanna work with the ‘attachsound’ method - I like to see my stuff on the stage…

Thanx for your help in advance !

Mike
