Flash fixes

This commit is contained in:
Joshua Granick
2018-07-07 11:10:57 -07:00
parent 6743c61405
commit ead5cd8946
2 changed files with 7 additions and 1 deletions

View File

@@ -206,7 +206,7 @@ class FlashWindow {
};
if (Reflect.hasField (attributes, "context") && Reflect.hasField (attributes.context, "background")) {
if (Reflect.hasField (attributes, "context") && Reflect.hasField (attributes.context, "background") && attributes.context.background != null) {
stage.color = attributes.context.background;
contextAttributes.background = stage.color;

View File

@@ -33,6 +33,11 @@ import ::APP_MAIN::;
app.meta.set ("name", "::meta.title::");
app.meta.set ("packageName", "::meta.packageName::");
#if (flash && !air)
app.window.context.attributes.background = ::WIN_BACKGROUND::;
app.window.frameRate = ::WIN_FPS::;
#else
::foreach windows::
var attributes:lime.ui.WindowAttributes = {
@@ -98,6 +103,7 @@ import ::APP_MAIN::;
app.createWindow (attributes);
::end::
#end
#end
// preloader.create ();