Showing posts with label Robotlegs. Show all posts
Showing posts with label Robotlegs. Show all posts

Wednesday, September 7, 2011

Robotlegs - Accessing a view's objects from another view

 We can not directly access a view's object from another view mediator.

To achieve this, we need to dispatch the events & then access the view's objects from another view.

You can not inject a view object in another view mediator & access.

Sample:

I have a MainView which has viewstack consisting of 3 childs (1.UserScreen 2.ProjectsScreen 3.ConfigScreen)

Now i am in ProjectsScreen & on click of a button, want to display the UserScreen by changing the viewstack index on MainView.

In ProjectsScreenMediator you can inject MainScreen view & then change the ViewStack selectedIndex.

Sunday, August 21, 2011

Robotlegs sample flex project with source code

This project gives the basic idea on robotlegs framework for flex applications.
Application execution steps:

1. It sets the flashvars object to a model object. (contextView stage parameters)

2. It fetches the user details from the server & stores it. (Using services)

3. On click of a button, it fetches the project xml data & displays it on a datagrid.

Sample screenshot of the application is attached.


Robotlegs
Flex 4.5 project code attached. Am using the library & main application. Import the library & main app, start running. You will see the result in action.

I am sure that there would be much better ways to do the things, so comments are always welcome on optimizations/suggestions/questions.

Friday, August 19, 2011

Robotlegs !! Flex framework

Cairngorm 2, Its been 2 years & the framework journey with Cairngorm 2 was good till now. Now, as we all know, more frameworks are emerging with more features, we need to adopt to one good framework though.

This time i chose ROBOTLEGS. Here, the name itself is special :) - I like it.

I recommend to refer the below diagram before starting with your code.

Source: http://www.robotlegs.org/diagram/

It has good & active discussion forum to answer all your questions at free of cost. :)

So.. start debugging Robotlegs. Happy journey...
Related Posts Plugin for WordPress, Blogger...