# Open new window

**URL:** <https://forum.kirupa.com/t/open-new-window/49614>\
**Category:** Uncategorized\
**Created:** [April 24, 2004, 6:56pm UTC](https://forum.kirupa.com/t/open-new-window/49614 "2004-04-24T18:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cocoalex](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@cocoalex](https://forum.kirupa.com/u/cocoalex)\
**Post date:** [April 24, 2004, 6:56pm UTC](https://forum.kirupa.com/t/open-new-window/49614/1 "2004-04-24T18:56:37Z")

</div>

I read this tutorial:

[http://www.kirupa.com/developer/flash5/newwindow.htm](http://www.kirupa.com/developer/flash5/newwindow.htm)

I made my button and added the following code to it:

on(release) {  
getURL([http://geografie.dap.ro](http://geografie.dap.ro), “\_blank”);  
}

I choose File \> Publish to get my html page to edit it and add the code between the body tags, but when I choose the Publish comand Flash shows me some error in my action code and won’t publish me file.

What is going on?  
Thanks a lot!
