Code Snippets

Code snippets are chunks of code that you often need to insert in your code.

Press Ctrl+B to expand a code snippet or view the snippets list.

FlashDevelop includes a Snippets editor (puzzle button in the toolbar), so that you can make your own snippets.

Here is a list of the snippets I use the most.

trace:

trace($(EntryPoint));

for loop:

for (var i:int = 0; i < $(EntryPoint); i++) { 

}

try/catch:

try { 
  $(EntryPoint)
} catch(e:Error){
    // here you process error, show it to user or make LOG
}

 

Post A Comment

Anti-Spam Quiz: