Skip to content

Instantly share code, notes, and snippets.

@nalmeida
Created September 20, 2010 18:00
Show Gist options
  • Save nalmeida/588325 to your computer and use it in GitHub Desktop.
Save nalmeida/588325 to your computer and use it in GitHub Desktop.
AS2 Scripts
// Frame 1
var total_bytes = _root.getBytesTotal();
var loaded_bytes = _root.getBytesLoaded();
percent = loaded_bytes/total_bytes;
if(percent >=1) gotoAndPlay("_afterLoad");
// Frame 2
gotoAndPlay(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment