# Navigate to url when entering a frame (no buttons)

**URL:** <https://forum.kirupa.com/t/navigate-to-url-when-entering-a-frame-no-buttons/303643>\
**Category:** flash\
**Created:** [January 24, 2010, 7:12am UTC](https://forum.kirupa.com/t/navigate-to-url-when-entering-a-frame-no-buttons/303643 "2010-01-24T07:12:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thevibe](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@thevibe](https://forum.kirupa.com/u/thevibe)\
**Post date:** [January 24, 2010, 7:12am UTC](https://forum.kirupa.com/t/navigate-to-url-when-entering-a-frame-no-buttons/303643/1 "2010-01-24T07:12:08Z")

</div>

Hi guys,

I have a flash movie with a kind of intro to enter the website. I need a script to navigate to a new url when the animation reach the frame 500. I don’t have any buttons. I am saying that cause I already know how to make it work with a button but not with a frame number. What do I need to change in the script ?

Here’s a button script I have;

btn\_1.addEventListener(MouseEvent.CLICK,a);

function a(e:Event){  
var request:URLRequest = new URLRequest(“[http://www.website.com](http://www.website.com)”);  
navigateToURL(request, “\_self”);  
}

So what should I change to make it work when it entered the frame 500 instead of when a button is clicked?

Thanks in advance!
