FLASHDEVELOP
unofficial asset collection

Templates

Actionscript 3 Event Templates

Features: multiple parameters, prefilled clone() and toString() functions
Flashdevelop Event Templates

Project Templates

Haxe JSFL Project

Build JSFL using Haxe, auto-completion on everything!
Haxe JSFL Project Template

Flambe

Project Panel » add 'Component'

Put in C:\Users\%USERNAME%\AppData\Local\FlashDevelop\Templates\ProjectFiles\HaxeProject

Add toolbar button

If you dislike starting the Flambe server from commandline, try these handy buttons. Copy/paste Settings/toolbar.xml from your FlashDevelop folder to your FlashDevelop 'user config files' /settings/ folder. Then add this at end of file, before the node, and restart FD:
<separator />
<button label="Flambe serve" click="RunProcess" tag="c:\windows\system32\cmd.exe;/c cd $(ProjectDir) & flambe serve & PAUSE" image="490" />
<button label="Flambe build flash html" click="RunProcess" tag="c:\windows\system32\cmd.exe;/c cd $(ProjectDir) & flambe build flash html" image="491" />

Customization

Syntax color theme

For AS3 and Haxe and Javascript
Flashdevelop syntax coloring
The idea is to highlight numbers/strings pretty extreme, make comments readable but don't stand out too much.
Download - "Syntax coloring.fdz" (3.83Kb)
Additional font - Consolas (free + great Microsoft font)

ActionScript 3 - Snippets

FlashDevelop Snippetfor.fds (fast loop)

for (var $(ItmUniqueVar):int, len$(TypClosestListName):uint = $(TypClosestListName).length$(EntryPoint); $(ItmUniqueVar) < len$(TypClosestListName); $(ItmUniqueVar)++) $(CSLB){
	
}

FlashDevelop Snippetfor reversed.fds

for (var $(ItmUniqueVar):int = $(TypClosestListName)$(EntryPoint).length - 1; $(ItmUniqueVar) >= 0; $(ItmUniqueVar)--) $(CSLB){
	
}

FlashDevelop Snippetperlin.fds

var noise:Bitmap = new Bitmap( new BitmapData($$(width=200), $$(height=200), false, 0) );
noise.bitmapData.perlinNoise($$(baseX=200), $$(baseY=200), $$(octaves=3), $$(randomseed=777), $$(stitch=false), $$(fractal=false), $$(channelOptions=7), $$(grayScale=false));
this.addChild(noise);

FlashDevelop Snippetswitch.fds

switch ($(EntryPoint)) $(CSLB){
	case:
		
		break;

	case:
		
		break;

	default:
		
}

FlashDevelop Snippetcircle.fds

$$(variable=this).graphics.clear();
$$(variable=this).graphics.beginFill(0x000000, 1);
$$(variable=this).graphics.drawCircle(0, 0, $$(radius=10));
$$(variable=this).graphics.endFill();
$(EntryPoint)


FlashDevelop Snippetfont embed.fds

[Embed(source='$$(source=)', fontName='$$(fontName=)', fontWeight='$$(fontWeight=normal,bold)', fontStyle='$$(fontStyle=normal,italics)', mimeType='application/x-font', unicodeRange='U+0020-U+00FF,U+2018-U+201E,U+2022,U+20AC,U+2122' )]









FlashDevelop Snippetcolor-to-rgb.fds

var red = color >> 16 & 0xFF;
var green = color  >> 8 & 0xFF;
var blue = color & 0xFF;

Haxe - Snippets

FlashDevelop Snippetfor

for ($(ItmUniqueVar) in 0 ... $(TypClosestListName)$(EntryPoint).length) $(CSLB){
	
}

Duplicate plugin snippets

Direct switch

addEventListener>removeEventListener
removeEventListener>addEventListener
public>private
private>protected
protected>public
true>false
false>true
width>height
height>width
scaleX>scaleY
scaleY>scaleX
upState>overState
overState>downState
downState>hitTestState
hitTestState>upState
x>y
y>z
z>x
rotationX>rotationY
rotationY>rotationZ
rotationZ>rotationX
lineTo>curveTo
curveTo>lineTo

Build command-line

Pre-build command line

Kill flashplayer before compile (prevents 'file.swf already used by another process')

taskkill /f /fi "imagename eq flashplayer.exe" /fi "status eq RUNNING"
taskkill /f /fi "imagename eq flashplayerdebugger.exe" /fi "status eq RUNNING"

Post-build command line

Duplicate/copy/overwrite swf files to other directory

C:\WINDOWS\system32\xcopy.exe "%*\bin\*.swf" "%*\..\..\root\inc\swf" /y


Share on Facebook:

Share on Twitter: