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

Ludum Dare 31 — Coming December 5th-8th 2014! — Join the Mailing List!
Also check out the Ludum Dare 30 results!
  • Ludum Dare 31 begins: in 75 days, 16 hours, 53 minutes, 40 seconds
  • (Time might be off, we’ll have it right soon) | Real World Gatherings (Now Open!)

    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).



    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]