# Go to url

**URL:** <https://forum.kirupa.com/t/go-to-url/136130>\
**Category:** Uncategorized\
**Created:** [February 2, 2005, 3:49pm UTC](https://forum.kirupa.com/t/go-to-url/136130 "2005-02-02T15:49:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rickc](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@Rickc](https://forum.kirupa.com/u/Rickc)\
**Post date:** [February 2, 2005, 3:49pm UTC](https://forum.kirupa.com/t/go-to-url/136130/1 "2005-02-02T15:49:23Z")

</div>

I need help badly. I’m trying to set up a button in flash mx2004 that goes to a url. I keep getting an error that says “statement must appear withing on handler”. When I do a “test movie” it seems to go to a file and not to the url. After clicking on OK the blank browser opens. The Code I’m using is:

this.url\_btn.onRelease = function () {  
getURL([www.macromedia.com](http://www.macromedia.com));  
} ;

I appreciate any help.  
Rick
