Skip to content

Instantly share code, notes, and snippets.

@joecorcoran
Created July 10, 2009 14:27
Show Gist options
  • Save joecorcoran/144552 to your computer and use it in GitHub Desktop.
Save joecorcoran/144552 to your computer and use it in GitHub Desktop.
stop();
// this sets the component's pageName param to
// something we'll define in the next step
cmp_omn.pageName = _root.clickedItem;
// check it's working
trace(cmp_omn.pageName);
// this waits for 0.3 seconds and then calls the
// function below, which sends us back to frame 1
shortWait = setInterval(GoAway, 300);
function GoAway() {
clearInterval(shortWait);
gotoAndStop(1);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment