March 2010
M T W T F S S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Code Snippets in FlashDevelop

Recently i find good button on FlashDevelop. It call ‘Code Snippets’.
s1

So, what mean snippet? Snippet is a programming term for a small region of re-usable source code, machine code or text. Ordinarily, these are formally-defined operative units to incorporate into larger programming modules. Snippets are often used to clarify the meaning of an otherwise “cluttered” function, or to minimize the use of repeated code that is common to other functions. Please read more about snippet on wikipedia.

How to use this in FlashDevelop? All very easy. Lets see the simple example. Please create .as file like this:
s2

Then click Ctrl + B or click to Code Snippets button on top menu, and you will see open pannel:
s3

Write ‘for’ like on images:
s4

Click enter, and you will get exciting code:) so you don’t need write code, flashdevelop will do it for you:)
s5

Now you can add some code yourself:
s6

And on output you will see next:
s7

Play and enjoy with snippets in flashdevelop;)

How to add your code or code of other developers to Code Snippets?

You can click to Tools>Code Snippets
s8

And then click to add and add your snippet:
s9

After this save and then you can use your own snippet:)

On the net you can find actionscript 3 snippets.

2 comments to Code Snippets in FlashDevelop

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>