(FMX) AS-Sound?

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)

Sorry!
forgot to add file!
Ben (flashy22)

O…k…
No-one knows???
help! please!

You could do something like this:

onClipEvent(load) {
zip=new Sound(this);
zip.attachSound(“zip01”);
// zip01 is the linkage identifier of an mp3 in the library.
}
//
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
zip.start();
this._x = int(Math.random()*550);
this._y = int(Math.random()*400);
}
}

Here’s you fla back with this code in it.

http://www.aspirin99.com/flash/chase.fla

Hey KennyB,

Thanks alot for the help, i would never have thought to use a hit-test,
Thanks again!
Ben (flashy22)