Skip to content

FlashDevelop

Mark Knol edited this page Feb 24, 2014 · 15 revisions

Handy serve+build buttons in FlashDevelop toolbar

If you dislike building and starting flambe 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 </toolbar> node, and restart FD:

<separator />
<button label="Flambe serve" click="RunProcess" tag="c:\windows\system32\cmd.exe;/c cd $(ProjectDir) &amp; flambe serve &amp; PAUSE" image="490" />
<button label="Flambe build flash html" click="RunProcess" tag="c:\windows\system32\cmd.exe;/c cd $(ProjectDir) &amp; flambe build flash html" image="491" />

flashdevelop-icons

The first icon will open a console that starts the local Flambe server, the second button compiles both Flash+HTML version (without running it). In the default FlashDevelop template provided by Flambe, only one target is compiled at a time (provided in the flambe.yaml file), so you would use this toolbar button only when you want to deploy both versions your game.

Snippet/Macro

When use a lot of Components, this snippet could be useful:

FlashDevelop Macro Snippet

Installation Part 1: Create a new snippet

Top menu : Tool > Code Snippets
Name it "component"

var $(EntryPoint)$(CurWord)$(ExitPoint):$(CurWord) = owner.get($(CurWord));
Installation Part 2: Create a new macro

Top menu : Macros > Edit Macros > Add

AutoRun: False
Entries:
 InsertSnippet|component
 ScintillaCommand|CharRightExtend
 ScintillaCommand|LowerCase
 ScintillaCommand|LineEnd
 ScintillaCommand|NewLine
Image:67
Label: "Flambe - Get Component"
Shortcut: Ctrl+Alt+Shift+1
Clone this wiki locally