# Dynamic Button/GetURL problem

**URL:** <https://forum.kirupa.com/t/dynamic-button-geturl-problem/295009>\
**Category:** Uncategorized\
**Created:** [August 24, 2009, 10:49am UTC](https://forum.kirupa.com/t/dynamic-button-geturl-problem/295009 "2009-08-24T10:49:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Plasmic\_Steve](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/plasmic_steve/32/361_2.png) [@Plasmic\_Steve](https://forum.kirupa.com/u/Plasmic_Steve)\
**Post date:** [August 24, 2009, 10:49am UTC](https://forum.kirupa.com/t/dynamic-button-geturl-problem/295009/1 "2009-08-24T10:49:55Z")

</div>

Hello. I’m working in Flash 9, AS2.

I have a button that (should) open a new window whose URL is determined by a variable, downloadlink:

on(press) {  
downloadlink = \_root.download[songnumber];  
\_root.getURL(downloadlink, “\_blank”);  
}

• I’ve traced this, and the variable for downloadlink is working correctly, pulling in a full URL like “[http://www.kirupa.com](http://www.kirupa.com)” from an array in the root

• this does not seem to be a popup block issue - because when I replace the code with:  
downloadlink = “[http://www.kirupa.com](http://www.kirupa.com)”;  
… the new page opens with no problem, in a new window

Can someone solve this for me? Is it a parsing issue? Help would be appreciated - thanks,

Steve
