FDT Template: Quick-create Child DisplayObject

Written on July 18, 2009 – 9:20 pm | by sascha |

Let’s burrow some in my FDT templates crate … how often do you have to add a child display object to another display object? If the answer is ‘very often’ then this small FDT template might save you some time.

${property} = new ${cursor};
addChild(${property});

It’s very simple but effective. Usage: Let’s for example name this template “newDisplayObject” and after invoking it with CTRL+SPACE you start typing the name of the display object property that you defined as a class property before which then should be auto-completed, then you hit TAB and then CTRL+SPACE to quick-insert the type after the ‘new’ operator (FDT is finding the correct type for you) and Voila, you’re finished, no need to add that extra ‘addChild’ manually.

One Response to “FDT Template: Quick-create Child DisplayObject”

  1. Rafael says:

    hi. this is really useful, thanks!

Leave a Reply

Welcome to the Hidden Resource!

You've stumbled into the deep down caves of game development geekiness! Here you find my occasional creative flows about game design and development and ActionScript Programming or even both combined.

Need any news feed?

 Main Feed (contains all categories), Dev Feed, Design Feed, Audio Feed, Gaming Feed, Miscellaneous Feed
Find entries: