ng release and blank controls

This commit is contained in:
Brandon
2020-11-01 14:16:22 -05:00
parent 968a001a36
commit 5fa4bc458e
65 changed files with 3468 additions and 126 deletions

View File

@@ -0,0 +1,23 @@
package io.newgrounds.swf;
import openfl.display.MovieClip;
class LoadingBar extends MovieClip {
public var bar(default, null):MovieClip;
public function new() {
super();
setProgress(0.0);
}
/**
*
* @param value The ratio of bytes loaded to bytes total
*/
public function setProgress(value:Float):Void {
bar.gotoAndStop(1 + Std.int(value * (bar.totalFrames - 1)));
}
}