Hello!
Sometimes I see coders putting a “;” after the “}”.
WHY?
Is there a special thing going on there?
Like this loader code in red:
total = _root.getBytesTotal();
mcLoad.onEnterFrame = function() {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
mcLoad.txtLoading.text = percent+"%";
mcLoad.txtLoading2.text = percent+"%";
mcLoad.gotoAndStop(percent);
if (loaded == total) {
gotoAndPlay(2);
delete this.onEnterFrame;
}
[COLOR=Red]};[/COLOR]
[COLOR=Black]Why do they do that?[/COLOR]