Skip to content

Commit 17b5fd9

Browse files
SplashScreenMonitor: fix int cast that should be Std.int() (closes #1)
Co-authored-by: ConfidantCommunications <ConfidantCommunications@users.noreply.github.com>
1 parent f83c79d commit 17b5fd9

File tree

1 file changed

+2
-1
lines changed
  • puremvc-haxe-demo-feathersui-appskeleton/src/org/puremvc/haxe/demos/feathersui/appskeleton/view

1 file changed

+2
-1
lines changed

puremvc-haxe-demo-feathersui-appskeleton/src/org/puremvc/haxe/demos/feathersui/appskeleton/view/SplashScreenMediator.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ class SplashScreenMediator extends Mediator implements IMediator {
6565
switch (note.getName()) {
6666
case StartupMonitorProxy.LOADING_STEP:
6767
// update the progress bar
68-
this.splashScreen.pb.value = cast(note.getBody(), Int);
68+
var progress = cast(note.getBody(), Float);
69+
this.splashScreen.pb.value = Std.int(progress);
6970

7071
case StartupMonitorProxy.LOADING_COMPLETE:
7172
// all done

0 commit comments

Comments
 (0)