Set up mvcExpress project

mvcExpress will work with most flash authoring tools, and and it will be set-up similarly as other ActionScript 3 projects but there are…

2 special points to remember:

  • Then you deploy – you MUST preserve metadata tags by adding -keep-as3-metadata+=Inject to your compile arguments.

mvcExpress uses custom as3 metadata tags to simplify work for you. They must be preserved then you release.

  • Then you deploy – you SHOULD remove debug compile argument, or set it to false: -define+=CONFIG::debug,false
mvcExpress uses custom compilation heavily with CONFIG::debug compile argument.
Add -define+=CONFIG::debug,true to your compile arguments and then you compile your application much more code is added in swf file to do extra work for you – check types, argument count, throw detailed errors and such. All of this should be omitted from release compilation to preserve speed of your application.
Add -define+=CONFIG::debug,false to your compile arguments then you release, or remove it.

Getting framework files:

To use framework you have to add mvcExpress to your project. You can do it by adding AS3 code files or compiled SWC to your project.
This is recommended method as it will let you define compile argument for debug/release conditional compilation.
Instead of using conditional compilation for debug/release versions you could just use SWC file compiled for that.

FlashDevelop

Very convenient tool to work with mvcExpress.

  • You don’t need to add debug compile arguments – FlashDevelop does it for you.
  • You can use templates to create project and framework classes. Project and class templates – extract content to FlashDevelop ‘Application Files…’ folder.