Skip to content

FlashDevelop

Mark Knol edited this page May 16, 2014 · 15 revisions
### Handy buttons for 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.

Download
If you don't have a custom toolbar, then you could download this [toolbar.xml](http://projects.stroep.nl/flashdevelop/Flambe - Toolbar Buttons.fdz) installer.

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
  • Image: 67
  • Label: Flambe - Get Component
  • Shortcut: Ctrl+Alt+Shift+1
  • Entries:
InsertSnippet|component
ScintillaCommand|CharRightExtend
ScintillaCommand|LowerCase
ScintillaCommand|LineEnd
ScintillaCommand|NewLine
Clone this wiki locally