getURL not working in AS2

I was recently working on a Flash AS2 project, where I was calling:

getURL(thankYouUrl, “_self”);

the variable thankYouUrl is received from an xml in response to a sendAndLoad call.

I was receiving inconsistent results with ie, and firefox, sometimes working sometimes not.

After investigating popup blocking, using escape() and security issues I implemented the following code in the appropriate AS Class:

getURL(thankYouUrl, “_blank”);

(I also published to Flash 8 Player rather than Flash 9)

For an explanation see object mix

I figured out that when the html and the swf are on separate servers, the
getURL must specify “_blank” as the target.

So you need


instead of just



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s