Action Script 2.
I have a count function that counts how many times the buttons in my scene are clicked.
It counts upwards on each mouse click:
_root.count+=1
I know this is working because a trace(_root.count) shows appropriately.
When count == 6, I need to trigger a sound. My code is as follows;
onClipEvent(mouseDown)
if (_root.count==6) {
snd=new Sound();
snd.attachSound("click");
snd.start();
}
}
The problem is, it's not triggering the sound as expected, even though the _root.count trace is showing 6.
I am in desparate need of a solution. Please help!

