tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/569-sars-experiencesRobotlegs: Discussion 2018-10-18T16:35:44Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/217283972012-11-29T15:49:39Z2012-11-29T15:49:40ZSARS experiences<div><p>Hi,</p>
<p>Does anyone have any experience with using the SARS extension?
Has it been a pleasant experience?</p>
<p>Where I work we start every new project with a "base project"
that has all the commonly needed stuff like loading config/assets,
localization, view transitions and such things. This base project
has been based on RL1 but we are thinking about porting to RL2. We
are thinking if we should base it on SARS or not.</p>
<p>Not all our projects use Starling or Away, and very few use
both. However, it happens. We do not want to maintain many base
projects so we are thinking if it would still be useful to base it
on SARS, so that both Starling and Away would be there when needed,
but not in the way if not needed. Would that work??</p>
<p>I thought I would ask the community before digging into the
extension and RL2.</p>
<p>Best</p></div>Samueltag:robotlegs.tenderapp.com,2009-10-18:Comment/217283972012-11-29T19:16:50Z2012-11-29T19:16:50ZSARS experiences<div><p>Hi Samuel,</p>
<p>One of the design goals of RL2 is to allow reuse without
inheritance. The recommended way to achieve what you want is to
create Bundles. Have a look at the MVCSBundle to get an idea of
what a custom Bundle does:</p>
<p><a href=
"https://github.com/robotlegs/robotlegs-framework/blob/master/src/robotlegs/bender/bundles/mvcs/MVCSBundle.as">
https://github.com/robotlegs/robotlegs-framework/blob/master/src/ro...</a></p>
<p>It installs a number of Extensions and possibly some custom
Configs.</p>
<p>You'll notice that the SARS bundle is quite similar:</p>
<p><a href=
"https://github.com/Vj3k0/robotlegs-extensions-SARS/blob/master/src/robotlegs/bender/bundles/SARSBundle.as">
https://github.com/Vj3k0/robotlegs-extensions-SARS/blob/master/src/...</a></p>
<p>I don't have any experience with SARS unfortunately, so I can't
give any advice in that regard.</p>
<p>Hope that helps,</p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/217283972012-11-30T15:08:48Z2012-11-30T15:08:48ZSARS experiences<div><p>Samuel, thanks for taking interest in RL and SARS. I replied to
your email, but I'm pasting relevant part of my response here also
if it helps anyone else:</p>
<p><em>You should have no problem with using only Starling, Away or
Flash display list, or any combination of those. If you would want
to use only Flash display list, then it would be better to use
MVCBundle to avoid extra code dependencies and have smaller
app.</em></p>
<p><em>SARS is like a Swiss knife. In configure method you can pass
only StarlingCollection without View3D and you will use only
Starling. You can also pass only ContextView to use only Flash
display list without Away3D or Starling and you would use it like
classic RL. But as I said, it would be better then to use MVCBundle
with SignalCommandMapExtension.</em></p>
<p>Regards,<br>
Vjeko</p></div>Vj3k0