dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Create Projector File Programmatically

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    2

    Post

    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

  2. #2
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766

    Fire off an email to support@northcode.com, I'd be interested in talking with you about this.


  3. #3
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766

    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!


  4. #4
    Junior Member
    Join Date
    Apr 2002
    Posts
    2
    Wow, that is very simple, very cool.
    Thank you for your help.
    I'll give it a try.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center