# Problem with sound object

**URL:** <https://forum.kirupa.com/t/problem-with-sound-object/205701>\
**Category:** flash\
**Created:** [November 1, 2006, 3:26am UTC](https://forum.kirupa.com/t/problem-with-sound-object/205701 "2006-11-01T03:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theSchtickler](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Post date:** [November 1, 2006, 3:26am UTC](https://forum.kirupa.com/t/problem-with-sound-object/205701/1 "2006-11-01T03:26:11Z")

</div>

Hi there,

I have this script in my movie which fades a sound up in volume.

[AS]loopOne = new Sound();  
loopOne.attachSound(“busyPub”);  
loopOne.start(0,99);  
loopOne.setVolume(0);  
var volStart:Number = 0;

function fadeUpMusic(){  
this.onEnterFrame = function(){  
if (volStart \<= 49){  
volStart++;  
loopOne.setVolume(volStart);  
} else {  
loopOne.setVolume(50);

```
		this.onEnterFrame = null;
	}
}

```

}

fadeUpMusic();[/AS]

It works fine by itself. The issue is that I’m loading it into another MC, and when I do, it doesn’t work? Is it something to do with the ‘this.onEnterFrame’ code? Any help would be appreciated 🙂
