A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: bundle exe file with air app

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    326

    bundle exe file with air app

    For the Mac I'm using the apple widget PNGPong to shrink png files. It's using Optipng to shrink the png file which is dragged upon this widget. For windows I was thinking about creating something similar with an Air app.

    Been reading about dropping a file upon an Air app, but for this to work the app would have to include the optipng.exe file. So the idea is: I drop the png file upon the Air app, this png file is then processed by the optipng.exe file with a line like 'optipng -o7 draggedfile.png', this processed file is returned.

    But is it possible at all to include exe files within an Air app?

    Illustration | Animation | Web Banners | Graphic Design
    Ducklord Studio

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    You may be able to embed it as a byteArray using the Embed tag with a mime-type of application/octet-stream - then write that byteArray back out as an exe with a FileStream...
    Please use [php] or [code] tags, and mark your threads resolved 8)

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