Robotlegs component

actionscriptpro's Avatar


20 Apr, 2011 07:02 AM

I have an aplication build with robotlegs framework, but it turned out I have to use it as a component for another app.
I have some data within this component (in a model) and I want to access it from outside. What's the better way to do that ?

Thank you

  1. 1 Posted by Amy Blankenship on 20 Apr, 2011 11:40 PM

    Amy Blankenship's Avatar

    You should have a reference to the model in either the root View or its Context. If it is private or protected in the Context, open it up by using a getter. If you already have it in the root View, then you can use a getter to allow access to it from the outside.

    There's nothing magical about using RobotLegs that means you can't use normal techniques you'd use in other places.

  2. Stray closed this discussion on 11 May, 2011 08:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac