Skip to content

Instantly share code, notes, and snippets.

@lynndylanhurley
Created December 8, 2010 20:22
Show Gist options
  • Save lynndylanhurley/733845 to your computer and use it in GitHub Desktop.
Save lynndylanhurley/733845 to your computer and use it in GitHub Desktop.
var next:Number;
if ( !active.index || active.index > 4 )
next = 2;
else
next = active.index + 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment