# (FMX) AS-Sound?

**URL:** <https://forum.kirupa.com/t/fmx-as-sound/121660>\
**Category:** Uncategorized\
**Created:** [September 5, 2004, 8:54am UTC](https://forum.kirupa.com/t/fmx-as-sound/121660 "2004-09-05T08:54:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashy22](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@flashy22](https://forum.kirupa.com/u/flashy22)\
**Post date:** [September 5, 2004, 8:54am UTC](https://forum.kirupa.com/t/fmx-as-sound/121660/1 "2004-09-05T08:54:00Z")

</div>

Hey all, im having a bit of trouble with something,  
ok well, if you look at the attached file, there are 2 circles(movie clips), they have an AS code on them :

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse,\_root.\_ymouse,true)) {  
this.\_x = int(Math.random()\*550);  
this.\_y = int(Math.random()\*400);  
}  
}

Now, i wanted to put a sound on the rollover, so when it ran away, it would make a noise, so i put an invisible button on the top in each movie-clip.  
and put a sound on the over state, but, this makes the MC’s not run away!  
So i thought that i could add a on (rollOver), but i dont know the code to load a sound from the library, any help appreciated,  
Thanks,  
Ben (flashy22)
