Skip to content

Instantly share code, notes, and snippets.

@joecorcoran
Created July 10, 2009 14:34
Show Gist options
  • Save joecorcoran/144557 to your computer and use it in GitHub Desktop.
Save joecorcoran/144557 to your computer and use it in GitHub Desktop.
// declare your variable
var clickedItem:String;
// clickable_mc can obviously be the
// instance name of anything you want
// the user to click
clickable_mc.onRelease = function() {
// set the variable to anything - this
// will be grabbed in mc_omn and assigned
// to the pageName param of the ActionSource
// component - you can use this._name if your
// clips are named sensibly, or grab a
// string from an array
clickedItem = "info_I_want_to_send_to_Omniture";
// send mc_omn to frame 2, calls ActionSource
mc_omn.gotoAndPlay(2);
// all your other onRelease functionality,
// getURLs or whatever goes here
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment