Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411508 Posts in 69374 Topics- by 58429 Members - Latest Member: Alternalo

April 26, 2024, 09:12:34 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Making flash EXEs
Pages: [1] 2 3
Print
Author Topic: Making flash EXEs  (Read 16164 times)
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« on: December 26, 2009, 01:37:35 PM »

Um, so I was under the impression that Adobe AIR was an EXE compiler for Flash. But apparently that's not what it does at all. This is a problem, because I've made my new game VVVVVV in flash, and I want to release it as a downloadable game!

For a few reasons, I'd rather not use the standard flash projector. So I either need to find another way to compile the game to an EXE, or I need to port it to C++, which could be very time consuming.

I have a couple of specific questions to ask, if anyone can help:

 - What is the best way to do what I'm trying to do?

 - How does Machinarium work, exactly? It's a EXE flash game, but it's not a projector. The EXE simply has "Adobe Flash Player 10.0 r32" as its description.

 - Has anybody used Multidmedia's ZINC? What's it like? Will it do what I want?

Cheers!
Logged

Fuzz
Guest
« Reply #1 on: December 26, 2009, 02:02:22 PM »

have you tried contacting amanita? they might be able to tell you what you need to know.
Logged
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #2 on: December 26, 2009, 02:13:13 PM »

have you tried contacting amanita? they might be able to tell you what you need to know.

I think I will, thanks Smiley
Logged

Captain_404
Guest
« Reply #3 on: December 26, 2009, 02:25:08 PM »

I'd also be interested in doing this. If Once you figure it out, would you mind posting something here to guide the rest of us in the right direction?
Logged
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #4 on: December 26, 2009, 02:28:53 PM »

Will do. Here's hoping. Epileptic

First piece of information though; it looks like Zinc is a waste of time. I tried it out and the game ran unplayably slow. (I guess it's possible that this is something the program does to cripple the trial version so that you'll buy the full one, but since it doesn't actually say that anywhere I can only assume the full version is equally useless)
Logged

kiwi
Level 0
***


View Profile WWW
« Reply #5 on: December 26, 2009, 02:38:16 PM »

Quick and easy solution : http://haxe.org/com/libs/swhx
Either that or use C# or C++ or something like that to embed the flash activex and play your swf.
Logged

BorisTheBrave
Level 10
*****


View Profile WWW
« Reply #6 on: December 26, 2009, 02:49:43 PM »

I suspect most of these methods are just activeX, or some similar embedding technology, and storing the swf in a data segment of the exe. Nothing's going to work without Flash installed on the system, and as far as protected against decompilation, it's not a particularly helpful move. But I presume the main motivation is just that standalone exe's feel more professional. There's many programs that transform swfs to exe's. In fact, I thought Adobe's own stuff did it..

There are non-Flash-player libraries about there for displaying and playing swfs, but they are not usually drop in replacements. But it might be an easier route than a full port, if you must escape the Adobe universe.
Logged
Draknek
Level 6
*


"Alan Hazelden" for short


View Profile WWW
« Reply #7 on: December 26, 2009, 03:37:32 PM »

I have nothing to contribute here, but I'm curious what reasons there are to not use the standard Flash projector.

I presume it doesn't work if you don't already have Flash installed?
Logged

Glaiel-Gamer
Guest
« Reply #8 on: December 26, 2009, 03:43:47 PM »

(in flash)
file -> publish settings ->
check "windows projector" and "mac projector"

not sure how in flex, but if you have the debug standalone flash player, you can do file->make projector

also see: adobe air


edit:
I have nothing to contribute here, but I'm curious what reasons there are to not use the standard Flash projector.

I presume it doesn't work if you don't already have Flash installed?
flash projector embeds flash player and the swf into one monster of a thing. Flash player is small though so it never adds much more than 5-6 MB to the size of the swf.

The only reason not to use it is if you need extra functionality, in which case use Air. If Air still doesnt have the functionality you need, then I don't know.
Logged
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #9 on: December 26, 2009, 04:07:41 PM »

I have nothing to contribute here, but I'm curious what reasons there are to not use the standard Flash projector.

I presume it doesn't work if you don't already have Flash installed?

There are two reasons why I'd rather not use the default Flash projector:

  • It's ugly and not user friendly. It has a menu bar with weird settings like zoom, it has the usual right click flash menu thing, it goes back to a window when you press esc - basically, it doesn't behave like a normal application. I've found a way to fix most of this in Windows, but I don't know if I can for Mac or Linux. The far bigger problem, though, is...
  • It's not secure. You can extract the SWF file from the projector, which can easily be uploaded by anyone to newgrounds or wherever.

There are also things I was expecting to be able to do with AIR, like write save files locally, which I don't think you can do with a projector... But maybe I'm wrong. I was very wrong about what AIR does Sad
Logged

Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #10 on: December 26, 2009, 04:11:11 PM »

It looks like there are quite a few different SWF2EXE tools like Zinc out there, and I've just tried one called SWF Studio that doesn't have the slowdown problem - though instead has a very very slow loading time that causes the system to freeze. So that's not really an option either. Also, Zinc is the only one that appears to be cross platform, so it's probably the only option anyway.

The Haxe thing looks interesting! I'll look into it - thanks, kiwi Smiley
Logged

Glaiel-Gamer
Guest
« Reply #11 on: December 26, 2009, 04:22:24 PM »

I have nothing to contribute here, but I'm curious what reasons there are to not use the standard Flash projector.

I presume it doesn't work if you don't already have Flash installed?

There are two reasons why I'd rather not use the default Flash projector:

  • It's ugly and not user friendly. It has a menu bar with weird settings like zoom, it has the usual right click flash menu thing, it goes back to a window when you press esc - basically, it doesn't behave like a normal application. I've found a way to fix most of this in Windows, but I don't know if I can for Mac or Linux. The far bigger problem, though, is...
  • It's not secure. You can extract the SWF file from the projector, which can easily be uploaded by anyone to newgrounds or wherever.

There are also things I was expecting to be able to do with AIR, like write save files locally, which I don't think you can do with a projector... But maybe I'm wrong. I was very wrong about what AIR does Sad

1. use air

2. you could lock the swf to "localhost". I.E. look up the url, if it's not "localhost/........" then send them to a "fuck you" page.

3. air lets you save files and get rid of the menu and stuff
Logged
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #12 on: December 26, 2009, 04:27:13 PM »

Ok, hang on - are you saying that I can make a single, standalone EXE with AIR? Because I haven't been able to do that, and I was under the impression that that's not how it works...
Logged

Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #13 on: December 26, 2009, 04:30:06 PM »

2. you could lock the swf to "localhost". I.E. look up the url, if it's not "localhost/........" then send them to a "fuck you" page.

I did that with the offline version of Don't Look Back, but I recently had someone decompile a game of mine and remove the sitelock. I don't think that's really secure if the person playing has incentive to hack it.
Logged

Fuzz
Guest
« Reply #14 on: December 26, 2009, 04:35:48 PM »

speaking of this... once you figure that out, might you be able to do something similar for your online-only games?

edit: just remembered something about machinarium: on macs that have machinarium installed, it makes swf files open machinarium by default, without showing the content of the said swf file.
« Last Edit: December 26, 2009, 05:34:23 PM by ¡¿Fuzz‽ » Logged
PlayMeTape
Guest
« Reply #15 on: December 26, 2009, 06:21:06 PM »

I'm not very good at all of these hard things, but when you downloaded Meat Boy didn't you get an .exe? So maybe ask Edmund?
Logged
Draknek
Level 6
*


"Alan Hazelden" for short


View Profile WWW
« Reply #16 on: December 26, 2009, 06:43:33 PM »

If the main issue is encryption, then maybe the solution is to encrypt the swf before turning it into a projector or to create an executable that wraps an encrypted version of the projector.
Logged

Fuzz
Guest
« Reply #17 on: December 26, 2009, 06:54:51 PM »

I'm not very good at all of these hard things, but when you downloaded Meat Boy didn't you get an .exe? So maybe ask Edmund?
That uses a flash projector, which is not what Terry wants.
Logged
Terry
TIGSource Editor
Level 10
******



View Profile WWW
« Reply #18 on: December 26, 2009, 06:59:52 PM »

I'm not very good at all of these hard things, but when you downloaded Meat Boy didn't you get an .exe? So maybe ask Edmund?

I think that was just the usual Flash projector as well Sad

If the main issue is encryption, then maybe the solution is to encrypt the swf before turning it into a projector or to create an executable that wraps an encrypted version of the projector.

Yeah, I think so - unfortunately, I don't think any of those programs actually work for very long...

I was really hoping that there was some way to just compile an Actionscript Flex project to an EXE, but it looks like you can't do that. So it looks like I'm just going to have to port it. Which is... not that scary, really.
« Last Edit: December 26, 2009, 07:07:03 PM by Terry » Logged

Bennett
Jinky Jonky and the Spell of the Advergamez 3
Level 10
*



View Profile
« Reply #19 on: December 26, 2009, 07:10:17 PM »

Seems like maybe you could build it as an AIR application and buy Shu lite as a cheap projector. They have a free trial, and the lite version is $45. There's joystick support, and Mac and Windows. That's what I'm planning to try for my Gamma4 project.
« Last Edit: December 26, 2009, 07:14:34 PM by Bennett » Logged
Pages: [1] 2 3
Print
Jump to:  

Theme orange-lt created by panic