А может у кого нибудь есть код!
Вот код для клавы. А мне нужно для кнопок

Код HTML:
keyDetect = new Object();
keyDetect.onKeyUp = function() {
if (Key.getCode() == Key.RIGHT) {
_root.play();
currentStage++;
} else if (Key.getCode() == Key.LEFT) {
if (currentStage>0) {
currentStage--;
}else {
currentStage = labelNum.length-1;
_root.gotoAndStop(_root._totalframes-1);
}
playBackward(labelNum[currentStage]);
}
};
Key.addListener(keyDetect);
function playBackward(stopFrame) {
_root.onEnterFrame = function() {
if (_root._currentframe != stopFrame) {
_root.prevFrame();
}else{
_root.gotoAndStop(stopFrame);
_root.onEnterFrame = null;
}
};
}