Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flash support for web platform #48

Open
samyduc opened this issue Jun 14, 2015 · 5 comments
Open

flash support for web platform #48

samyduc opened this issue Jun 14, 2015 · 5 comments

Comments

@samyduc
Copy link

samyduc commented Jun 14, 2015

First of great work with this tool, it is what you need when you start to automate some processes.
I am currently developing a web game, and I badly need support for the Flash target.

What I am doing is actually checking the webgl capabilities of the browser (with modernizer for example) and if so, I run a small microbenchmark (sometimes on laptop, webgl will use the integrated graphic card of the player but usually in flash, it will go with big one by default) to decide if I am loading the flash player or the webgl version.

Is Flash support something that will come in a near future?

@ruby0x1
Copy link
Member

ruby0x1 commented Jun 15, 2015

Hi!

Well - let's start with:
“web” target is a fixed construct, it will never have multiple meanings.
If the “flash” target exists, that will be it's name, separate.

Secondly, there are two directions for this to take and I'll need your/the users input (because I don't use and never want to use flash any more) so it's important for their to be perspectives to what happens there.

And then to this:
Given the basic functionality;

  • files command (copies things around)
  • running haxe command with the project hxml (build)

What additional steps are required for a flash build from a flow file to make sense?

The second approach is more in depth, so it would help to better understand what you see happening with the flash target before I mention that direction :)

@samyduc
Copy link
Author

samyduc commented Jun 15, 2015

Thank you for the response, sadly flash is I think, still a necessary evil.

For my use case, flash is similar to the web target. I need to embed it into a web page (so the template concept is neat for it).

Compilation options are the same than the web target (resources are also bundles with the app, like js). I do not have particular need except for the option to exist.

As you said, files command and running a build are the only things I see. I am not speaking about an AIR application or something more complex, just a fall-back for the webgl version.

@ruby0x1
Copy link
Member

ruby0x1 commented Jun 15, 2015

When you say the resources are bundled - I assume that maybe haxe handles the embedding for flash? The js target just copies files to the output folder and nothing more - unless using the haxe -resource flag, which embeds it.

Either way, I already have some changes in the pipeline from long ago that will allow this to work (and much more). I'll post back soon with some info on how to use it.

If you have other feedback - do add it here in the mean time (That goes for onlookers as well).

@samyduc
Copy link
Author

samyduc commented Jun 15, 2015

Yes it is what I meant.

@ruby0x1
Copy link
Member

ruby0x1 commented Jun 15, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants