# Collision and goto

**URL:** <https://forum.kirupa.com/t/collision-and-goto/156723>\
**Category:** Uncategorized\
**Created:** [July 27, 2005, 4:33pm UTC](https://forum.kirupa.com/t/collision-and-goto/156723 "2005-07-27T16:33:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritual](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@ritual](https://forum.kirupa.com/u/ritual)\
**Post date:** [July 27, 2005, 4:33pm UTC](https://forum.kirupa.com/t/collision-and-goto/156723/1 "2005-07-27T16:33:34Z")

</div>

why doesn’t this as work, the symbols realise when they collide but i can’t get the go to action to work when they touch

[font=Courier New]onClipEvent (enterFrame) {  
if (\_root.block1, hitTest(\_root.block2)) {  
\_gotoAndPlay(“Scene 5, 1”);  
} else {  
\_root.text = “”;  
}  
}[/font]
