# Stuck in a loop, help!

**URL:** https://forum.kirupa.com/t/stuck-in-a-loop-help/280252
**Category:** flash
**Created:** [January 25, 2009, 12:51am UTC](https://forum.kirupa.com/t/stuck-in-a-loop-help/280252 "2009-01-25T00:51:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imcabee](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@imcabee](https://forum.kirupa.com/u/imcabee)
#### Post date: [January 25, 2009, 12:51am UTC](https://forum.kirupa.com/t/stuck-in-a-loop-help/280252/1 "2009-01-25T00:51:33Z")

</div>

Hello,  
I have a swf within a html page. There is a function that opens an html page when an object gets to a certain x position. However, when the object gets to that point the new html page (in \_self) opens over and over again and get stuck in a loop. Any way to escape this loop and what would be the best way to trigger this new html page to open when the x position of the object is true?

Thanks in advance!
