# Make Link work at beginning of animation?

**URL:** <https://forum.kirupa.com/t/make-link-work-at-beginning-of-animation/198259>\
**Category:** flash\
**Created:** [August 23, 2006, 3:46pm UTC](https://forum.kirupa.com/t/make-link-work-at-beginning-of-animation/198259 "2006-08-23T15:46:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clos](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@clos](https://forum.kirupa.com/u/clos)\
**Post date:** [August 23, 2006, 3:46pm UTC](https://forum.kirupa.com/t/make-link-work-at-beginning-of-animation/198259/1 "2006-08-23T15:46:03Z")

</div>

I have an animation that is going to be the start page for a website. I wanted to add in a skip button that would allow the user to go right to the site. This is the code I used:

\*mainPage\_btn.onRelease = function() {  
getURL(“hompage.html”);  
}

\*Now the the button doesn’t work as a link until the animation is over, and I was wondering how I could make it work at the begining. I have a keyframe at the begining and end of the movie, and it doesnt matter whether its tweened or not, it still doesn’t work until the end.

When I do a publish preview I get this error message:

\ ***Error** Scene=Scene 1, layer=skip, frame=255:Line 1: Statement must appear within on handler  
mainPage\_btn.onRelease = function() {

Total ActionScript Errors: 1 Reported Errors: 1

\*and I’m not sure whether that has something to do with it.

Any help at all would be great.
