Skip to content

Instantly share code, notes, and snippets.

@fwextensions
Created March 11, 2009 05:57
Show Gist options
  • Save fwextensions/77340 to your computer and use it in GitHub Desktop.
Save fwextensions/77340 to your computer and use it in GitHub Desktop.
Fireworks: Saving and restoring the current selection
// make a copy of the current selection by concatenating it
// with an empty array
var originalSelection = [].concat(fw.selection);
for (var i = 0, len = originalSelection.length; i < len; i++) {
// change the selection as needed
}
// restore the original copy of the selection
fw.selection = originalSelection;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment