Hi guys
I am putting together a wee animation that features several beer bottles that when clicked on enlarge and show some information on that particular brew. this part is working fine (first part of the code below). What I would like to happen next is that the script checks to see if any of the other bottles have already been clicked on and will then send them back to their original state by playing another part of the time line. At the moment the second part of the script below is not working but also showing no errors. I have double checked the instance names and the “return” label - which is on frame 31 (frame 30 has stop(); placed on it to halt the first part of the animation.) My grasp of action script is a bit average so any help would be much appreciated
onClipEvent(mouseDown){
if(_root.bottle1.hitTest(_root._xmouse, _root._ymouse,true)){
_root.bottle1.gotoAndPlay(2);
if(_root.bottle2._currentframe<=30) {
_root.bottle2.gotoAndPlay("return");
}
}
}