Thank me later

If you use TextMate, and write ActionScript, then you need to learn about TextMate’s code “snippets”. Once you understand that, you can use this:

${1:newName} = ${2:target}.createEmptyMovieClip(”${1:newName}”, ${2:target}.getNextHighestDepth() );

Thank me later.[UPDATE:] also, this as a shortcut for creating a new text field (I use tab trigger ‘ctf’):

${1:target}.createTextField(”${2:name}”, ${3:${1:target}.getNextHighestDepth()}, ${4:xpos}, ${5:ypos}, ${6:width}, ${6:height} );var ${2:name}:TextField = ${1:target}.${2:name};

Here’s a short video to show you what I mean: TextMate code snippet

This entry was posted on Wednesday, October 3rd, 2007 at 5:07 pm and is filed under adobe, development, flash, software, tech, textmate. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply