PakiSensation
Programmer
HI guys..
nobody seemed to have an answer to this last night..
i have a square moving from one end of the stage to another..i have six buttons arranged at the bottom which can be dragged..now everytime u drag the button infront of the moving sqaure, i want a sound to be triggered..the square should detect the button with hitTest, play the sound and pass over it continuing on its path..in this way i wanna mix a few sounds as the square passes over each sound in its way...
code for sqaure MC:::
onClipEvent (enterFrame) {
if (this.hitTest(_root.buttonMC)) {
_root.XXXX}
}
IS There a function for playing a sound so that i can put that in place of XXX.
Please help me out..thanks
nobody seemed to have an answer to this last night..
i have a square moving from one end of the stage to another..i have six buttons arranged at the bottom which can be dragged..now everytime u drag the button infront of the moving sqaure, i want a sound to be triggered..the square should detect the button with hitTest, play the sound and pass over it continuing on its path..in this way i wanna mix a few sounds as the square passes over each sound in its way...
code for sqaure MC:::
onClipEvent (enterFrame) {
if (this.hitTest(_root.buttonMC)) {
_root.XXXX}
}
IS There a function for playing a sound so that i can put that in place of XXX.
Please help me out..thanks