Spring Actionscript and Modules

13 views
Skip to first unread message

juan carlos

unread,
Mar 27, 2010, 7:18:26 AM3/27/10
to springactionscript-dev
Hi.
I have a couple of questions:

- How spring actionscript should be used in an application with
multiple dinamically loaded modules?
( neither cairgorm nor puremvc are used in my app...) Any examples?
Every module should load it`s own application context? (in some
sense... every module is an independent app that eventually
communicate with its parent application using events....)

- could Spring Actionscript should be used to inject i18n and l10n ?
(something like this http://www.gridlinked.info/amazing-i18n-solutions-for-flex-3-4/
but simpler...)

thanks for your help.

Roland

unread,
Mar 27, 2010, 11:45:47 AM3/27/10
to springactionscript-dev
Hey Juan,

Spring Actionscript can indeed be used in a multi-module situation,
giving each module its own application context
is indeed the way to go. These contexts can be used in a hierarchy as
well, check this part of the docs for some more info:

http://www.springactionscript.org/docs/reference/html/container-documentation.html#instantiation_through_a_parent_factory

there's also a small sample app that demonstrates this, also in
combination with stage wiring:

https://src.springframework.org/svn/se-springactionscript-as/trunk/spring-actionscript-samples/multiple-modules/src/main/actionscript

Should you want to use some sort of MVC pattern I can recommend the
MVC micro-framework thats present in the SVN trunk
at the moment, this MVC implementation is completely module friendly.
There's a small sample app demonstrating the system:

https://src.springframework.org/svn/se-springactionscript-as/trunk/spring-actionscript-samples/cafe-townsend-mvc

or, if you're interested in the same app but implemented using the
presentation model, check this:

https://src.springframework.org/svn/se-springactionscript-as/trunk/spring-actionscript-samples/cafe-townsend/src/main/actionscript

As for the localization bits, there's some locale bits and pieces to
be found in Spring Actionscript as well, you can check out the
localisation sample app here:

https://src.springframework.org/svn/se-springactionscript-as/trunk/spring-actionscript-samples/localization/src/main/actionscript

Hope that will get you going, if you have any other questions you know
where to find us :)

cheers,

Roland

On Mar 27, 12:18 pm, juan carlos <colom...@gmail.com> wrote:
> Hi.
> I have a couple of questions:
>
> - How spring actionscript should be used in an application with
> multiple dinamically loaded modules?
> ( neither cairgorm nor puremvc are used in my app...) Any examples?
> Every module should load it`s own application context?  (in some
> sense... every module is an independent app that eventually
> communicate with its parent application using events....)
>
> - could Spring Actionscript should be used to inject i18n and l10n ?

> (something like thishttp://www.gridlinked.info/amazing-i18n-solutions-for-flex-3-4/

Reply all
Reply to author
Forward
0 new messages