title: as3 how to stop an infinite loop?
body: <p>I have a website, and basically I want to use flash to automatically redirect the web site to another with as soon as its load. But it keeps rapidfiring, and has even crashed my computer at one point. How can I set this to only only send the user once.</p>
  
  <pre><code>addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler);
  
  function fl_EnterFrameHandler(event:Event):void
  {
  //navigateToURL(new URLRequest("http://www.levittproperties.com/sitebuildercontent/sitebuilderfiles/homepage.swf"), "_self");
  trace("Entered frame");
  }
  </code></pre>
  
  <p>The '//' is just incase you try in your flash. I don't want you to crash too. The 'trace' is sufficient to see what I'm talking about.</p>