Difference between revisions of "Integrating ConversionRuler with Flash"

From Market Ruler Help
Jump to: navigation, search
(Created page with 'Integrating ConversionRuler with Adobe Flash is straightforward; you simply invoke the tracking snippet on the page in ActionScript in your Flash Movie. A simple example…')
(No difference)

Revision as of 19:54, 4 February 2011

Integrating ConversionRuler with Adobe Flash is straightforward; you simply invoke the tracking snippet on the page in ActionScript in your Flash Movie.

A simple example of this would be:

ActionScript 3.0:

import flash.external.*;

function cr_track(action):void
{ 
 	ExternalInterface.call("cr_track("+action+")");
} 

trackable.addEventListener("click", function () { cr_track(1); });

Where "trackable" is our button instance name.

Note as well that the cr_track function defined above (in ActionScript) simply calls cr_track (in JavaScript) defined on your web page.