# Link to URL in blank window

**URL:** <https://forum.kirupa.com/t/link-to-url-in-blank-window/249848>\
**Category:** flash\
**Created:** [January 23, 2008, 1:56am UTC](https://forum.kirupa.com/t/link-to-url-in-blank-window/249848 "2008-01-23T01:56:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![designhappy](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@designhappy](https://forum.kirupa.com/u/designhappy)\
**Post date:** [January 23, 2008, 1:56am UTC](https://forum.kirupa.com/t/link-to-url-in-blank-window/249848/1 "2008-01-23T01:56:24Z")

</div>

[COLOR=Navy]Hi All!

Please help, I have this code that should allow the button in my flash file to open up the URL in a blank web window when clicked. Sorry not very Flash savvy. Anyone got some advice? Here is the code I have in there now:

\*\* my button has an instance name of website[/COLOR]

[COLOR=Gray]website.onRelease = function () {  
getURL(“[http://www.yahoo.com](http://www.yahoo.com)”, “\_blank”);  
} ;  
[/COLOR]

[COLOR=Navy]The error says:  
[/COLOR]  
[COLOR=Gray]1180: Call to a possibly undefined method getURL.  
1119: Access of possibly undefined property onRelease through a reference with static type flash.display:SimpleButton.  
[/COLOR]  
[COLOR=Navy]???

Thanks for your help.

Best,

monique[/COLOR]
