From 97d49b7078fe4169ead0e81bd52a86b38c8bbec9 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 25 Jul 2016 12:22:46 -0700 Subject: [PATCH] Use the HTML5Helper to run flash -web builds --- lime/tools/platforms/FlashPlatform.hx | 33 +++++++++++++++------------ 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/lime/tools/platforms/FlashPlatform.hx b/lime/tools/platforms/FlashPlatform.hx index 6913bdc49..bd2b8539d 100644 --- a/lime/tools/platforms/FlashPlatform.hx +++ b/lime/tools/platforms/FlashPlatform.hx @@ -8,6 +8,7 @@ import lime.tools.helpers.CompatibilityHelper; import lime.tools.helpers.DeploymentHelper; import lime.tools.helpers.FileHelper; import lime.tools.helpers.FlashHelper; +import lime.tools.helpers.HTML5Helper; import lime.tools.helpers.LogHelper; import lime.tools.helpers.PathHelper; import lime.tools.helpers.PlatformHelper; @@ -203,24 +204,26 @@ class FlashPlatform extends PlatformTarget { if (project.targetFlags.exists ("web")) { - targetPath = "index.html"; - - } - - if (traceEnabled) { - - #if neko Thread.create (function () { #end - - FlashHelper.run (project, destination, targetPath); - Sys.exit (0); - - #if neko }); #end - - Sys.sleep (0.1); + HTML5Helper.launch (project, targetDirectory + "/bin"); } else { - FlashHelper.run (project, destination, targetPath); + if (traceEnabled) { + + #if neko Thread.create (function () { #end + + FlashHelper.run (project, destination, targetPath); + Sys.exit (0); + + #if neko }); #end + + Sys.sleep (0.1); + + } else { + + FlashHelper.run (project, destination, targetPath); + + } }