Guys I have a movie clip that glides into place over the top of a button when the button is moused over. I'm trying to get a sound to play but only when the clip comes to a stop over the button. All works fine except the sound won't play. I have code that controls the slide on the time line and the button but i wont post that as there probably is no need.
When the clip loads I attach the sound, on mouse over i play the sound. But it doesnt work...Any Ideas what im doing wrong?
Thanks,
Carl
----------------------------------------
Orlando Web Design
When the clip loads I attach the sound, on mouse over i play the sound. But it doesnt work...Any Ideas what im doing wrong?
Code:
onClipEvent (load) {
xMove = _x;
easeSpeed = 5;
//load sound
var my_bleep:Sound = new Sound();
my_bleep.attachSound("bleep");
}
onClipEvent (enterFrame) {
_x += (xMove-_x)/easeSpeed;
}
onClipEvent (mouseUp) {
my_bleep.start();
}
Thanks,
Carl
----------------------------------------
Orlando Web Design