About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 8 days, 16 hours, 1 minute, 13 seconds
  • October Ends: in 9 days, 16 hours, 13 minutes, 13 seconds
  • Ludum Dare 31 begins: in 44 days, 17 hours, 1 minute, 13 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]

    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]