Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with passing param toswf

Status
Not open for further replies.

unomateo

IS-IT--Management
May 9, 2006
38
0
0
US
I'm working on an affiliate program with a flash banner. The affiliate program generates a param tag that looks like this:

Code:
<param name="movie" value="[URL unfurl="true"]http://affiliate-press.com/ads/girl_laptop.swf?clickTAG=http%3A%2F%2Faffiliate-press.com%3Fa_aid%3Dbb8a7d65%26a_bid%3Df2afcabd"[/URL] />

in my actionscript i have this to handle the click
Code:
on(release)
{
url = this._url;
pos = url.indexOf("?");
params = url.substr(pos+1);
param = params.split("=");
key = param[0];
value = param[1];

	getURL(value);
}

The problem is that is does not link properly.
when you click on the banner it link to this:

it should go to
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top