Haxe Macros: Code completion for everything (7)

, under haxe.

haxe This post is about Haxe 3, providing us smarter code-completion. I dislike doing things manually. We are using a computer, so it should help us. I’d like to get warnings when I make mistakes or point to things that are removed.
In this post we create a class that gives autocompletion automagically based on files on disk, using Haxe macro scripting. This gives us development power, less error-prone code and small javascript output.

Flash productivity tools: Random instance swapper (0)

, under JSFL.

random instance swapWhile approaching the deadline of House of Anubis (game), MediaMonks needed a tool that helps with randomizing tiles. The levels has a huge amount of walls and tiles in it’s library, since it is build in Flash with MovieClips on stage. For the quick win, this simple tool allowed to randomize selected clips on stage with a selection from our library. Of course; to refine it, you’ll need more than just a MovieClip swapping tool, but we love to share this tool with you anyway in case you need it.

Flash productivity tools: Transform selection manager (1)

, under JSFL.

selection transform manager When you have a selection with multiple MovieClips, you sometimes want to transform (rotate, skew, move, scale) them all, but individually. By default, Flash will transform them like it is one object. I created a tool for that. Just select some items on stage, call the command and set the adjustments. It is also possible to transform them relative from its current transformation.

Flash productivity tools: Organize layers (0)

, under JSFL.

autorenamelayer-explanation This tool automatically renames layers and cleans empty layers. This tool should be used as neurotic as you would use the save-button, and you will have perfectly named layers. We have included a free nazi-tool which detects if you’re using txt or mc as prefix for your instance names, according our MediaMonks coding standards.

Flash productivity tools : advanced library symbol duplicate (3)

, under JSFL.

duplicate symbol Ever wanted to duplicate a symbol timeline with all of its instances? In Flash, if you do a duplicate of a library item, it does not offer to duplicate its children too, you have to do it manually. Another annoying thing; it does not copy the class references. That’s why I created a tool that does it all. It asks you to give a pre- or postfix for the new names, or you can choose to replace parts of the names.