-
I am writing an flash-based application that will generate SWF files, but I also want to generate EXEs, projector files. Is there anyway to do this programmatically? If there is other freeware out there that I could use to shell from application, that would work too.
Any help would be greatly appreciated.
nykciv
-
Fire off an email to [email protected], I'd be interested in talking with you about this.
-
If you just want to build a projector from an SWF (like Flash does) without any fancy extras, it may surprise you to find out how easy it is :)
1. create a new file
2. append Flash player (FlashPla.exe or SAFlashPlayer.exe)
3. append SWF file
4. append "magic" dword 0xFA123456 (hex)
5. append file length (as a dword)
When appending the magic bytes and file length, the bytes should be added with the least significant byte first so 0xFA123456 would be added to the file as 0x56 0x34 0x12 0xFA, followed by the file length added in the same manner.
That's it!
-
Wow, that is very simple, very cool.
Thank you for your help. :)
I'll give it a try.