Templates
Actionscript 3 Event Templates
Features: multiple parameters, prefilled clone() and toString() functions
Project Templates
Haxe JSFL Project
Build JSFL using Haxe, auto-completion on everything!
Download - "355 Haxe - JSFL Project.fdz" (54.46Kb)
Flambe
Project Panel » add 'Component'
Put in C:\Users\%USERNAME%\AppData\Local\FlashDevelop\Templates\ProjectFiles\HaxeProjectAdd 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
ActionScript 3 - Snippets
for.fds (fast loop)
for (var $(ItmUniqueVar):int, len$(TypClosestListName):uint = $(TypClosestListName).length$(EntryPoint); $(ItmUniqueVar) < len$(TypClosestListName); $(ItmUniqueVar)++) $(CSLB){ }
for (var $(ItmUniqueVar):int = $(TypClosestListName)$(EntryPoint).length - 1; $(ItmUniqueVar) >= 0; $(ItmUniqueVar)--) $(CSLB){ }
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);
switch ($(EntryPoint)) $(CSLB){ case: break; case: break; default: }
$$(variable=this).graphics.clear(); $$(variable=this).graphics.beginFill(0x000000, 1); $$(variable=this).graphics.drawCircle(0, 0, $$(radius=10)); $$(variable=this).graphics.endFill(); $(EntryPoint)
[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' )]
var red = color >> 16 & 0xFF; var green = color >> 8 & 0xFF; var blue = color & 0xFF;
Haxe - Snippets
for
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