SomaCore

What is SomaCore?

SomaCore is a lightweight event-based MVC framework written in AS3 that provides a structure, models, views management and commands. Somacore can be used for Flash, Flex and AIR projects.

SomaCore is completely event-based and use a concept of wires to code in a efficient decoupled way. SomaCore can be used with or without dependency injection, and provide an injector adapter for the included DI library: SwiftSuspenders.

You can use SomaCore in anything, except to include/distribute it in another framework, application, template, component or structure that is meant to build, scaffold or generate source files.

Few things to know:

  • SomaCore requires the stage to be instantiated.
  • SomaCore can be used as a registry framework, dependendy injection framework, or both in the same time.
  • Another Dependency Injection library can easily be used instead of the default one.
  • Commands are normal built-in Flash events with the bubbles property set to true.
  • Commands can be used in the views as they are not framework code.
  • Wires are the glue of the frameworks elements (models, commands, views, wires) and can be used the way you wish, as proxy/mediators or managers.
  • Wires can manage one class or multiple classes.
  • Mediators are automatically created and removed when a view is added or removed from a display list (with or without injection enabled).
  • Parallel and sequence commands are built-in.
  • You can create and register customs plugins to the framework (such as the SomaDebugger plugin).
  • You can access to all the framework elements that you have registered (stage, framework instance, wires, models, views, injector, reflector, mediators and commands) from commands, wires and mediators.

Download Source

Click here to download a zip file containing the source code (classes and SWC), demos and documentation.

Repository (Github)

SomaCore Framework.
SomaCore Demos.
SomaCore Plugins.

Documentation

Click here to see the documentation (asdoc).
Manual (wiki).

Diagram

SomaCore MVC Diagram

Tutorials

Getting started (made with SomaCore v1)

SomaCore Getting Started Video Tutorial

Hello World

SomaCore Hello World

With dependency injection
View Demo
View Source
Download Source

Without dependency injection
View Demo
View Source
Download Source

Demo Flash

SomaCore Flash AS3 Demo

With dependency injection
View Demo
View Source
Download Source

Without dependency injection
View Demo
View Source
Download Source

Demo Flash (garbage collection monitor)

SomaCore Flash AS3 Demo - Garbage Collection

View Demo
View Source
Download Source

Demo Flex (CafeTownSend)

SomaCore Flex Cafe TownSend

With dependency injection
View Demo
View Source
Download Source

Without dependency injection
View Demo
View Source
Download Source

Twitter Search

SomaCore Twitter Search

With dependency injection
View Demo
View Source
Download Source

Without dependency injection
View Demo
View Source
Download Source

Vote in HexoSearch
3 Responses to “SomaCore”
  1. Adrian Sule - My random thoughts on Flash and Flex » Collection of libraries says:
  2. SomaCore AS3 MCV framework on Github | Soundstep, daily ActionScript. says:

    [...] SomaCore [...]

  3. SomaCore Hello World | Soundstep, daily ActionScript. says:

    [...] SomaCore [...]

Leave a Reply