From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Transferring Variables in Query String

Transferring variables to the query string is often desired when a user inputs some data interactively in a Flash banner, e.g. his/her e-mail or telephone number, etc. This can be achieved by appending  ";urlappend=" parameter to a clickTAG. The method of transferring these variables in the querystring is the best described by the examples below.

Using  ;urlappend= in querystring values

 ActionScript 2.0 code:

var DestinationVariable = "London";
on (release) {
    getURL(_root.clickTAG+";urlappend=" + DestinationVariable, _root.landingPageTarget);

ActionScript 3.0 code:

var DestinationVariable = "London";
button.addEventListener(MouseEvent.CLICK, ADFclicked);
function ADFclicked(event:MouseEvent) {
    AdfURLNavigator.navigateToUrl( AdfFlashVarsUtil.getParameter("clickTAG")
        + ";urlappend=" + DestinationVariable);

If the clickTAG is, for example, set to the user gets redirected to when the Flash banner is clicked.

Note: Variables in query string can not be tested on or in Banner's preview page. All query string variables will be passed to the final landing page only when banner is uploaded to campaign in Adform system and published.