actionscript - Dropdown list in Flash Banner -


i building flash banner ad contains dropdown list of states. once list clicked want pass state code onto end of url ad.

i used ok actionscript several years ago, , i'm wondering if possible have ad grab url parent <a href> , tack state code onto it. assume how clicktags work?

on (release) {   if (clicktag.substr(0,5) == "http:") {     geturl(clicktag, "_top");   } }  

can offer tips on how best this? i'm fine building actual ad, i'm not sure if need hard code 50 urls dropdown? seems bad way of doing things, , i'm sure theres better way?

many thanks.

clicktag string url has been put parameter in embed code, , url click through to.

since, it's string, can add whatever need programmatically.

i way:

say want add argument end of url ?state=ny

on (release) {   if (clicktag.substr(0,5) == "http:") {      var url:string;      url = clicktag + dropdownmenu.getcurrentstatecode() // i'm not sure how drop down works, last part pseudocode.    geturl(url, "_top");   } }  

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -