Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 29 — April 25th-28th Weekend [9 PM EST] — Theme: ??? (Theme Voting!)
  • Ludum Dare 29 Compo (48 Hour+Solo+Scratch+Src) Begins: in 4 days, 19 hours, 11 minutes, 25 seconds
  • Ludum Dare 29 Jam (72 Hour+Teams OK+Relaxed) Begins: in 4 days, 19 hours, 11 minutes, 26 seconds
  • [ MiniLD 50 | Warmup Weekend April 19th-20th | Real World Gatherings | Ludum Deals | Wallpaper ]


    Resource file generator for Actionscript 3

    Posted by (twitter: @jorjongames)
    January 16th, 2012 10:08 am

    Command-line tool that generates a single *.as file containing all the embeds of the folders passed.

    An example of what this tool can make is found here.

    This will help you if you, like me, like to store all your embed on a single “Resources.as” file. Every time I make a couple of assets I don’t want to add them by hand, so I run this application and it’s automatically done and embedded. It also handles *.tff (setting fontName and embedAsCFF=false as optional).

     

    Usage

    You can run resmaker -h to get the available list of parameters, but it’s really simple: you specify a bunch of folders where your assets resides (separated by comma), and where is the file Resources.as (will be created), and it will recursively iterate the folders. Remember to use always absolute paths.

    For example, the sample I linked above was done using:

    resmaker c:\Projects\LD22\assets -o c:\Projects\LD22\src\Resources.as

    If you use it, let me know! It was originally made as a Python exercise, but as I found it very useful, I decided to share.

    Download link here.

    Tags: , ,

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]