O'Reilly logo

Flex on Rails: Building Rich Internet Applications with Adobe Flex 3 and Rails 2 by Daniel Wanja, Tony Hillerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19 Runtime Flex Configuration with Prana

Goal

You have some configuration that you want your Flex application to load when it first starts.

Solution

Use Prana, an IoC Library for ActionScript, to configure and set variables on your Flex application at runtime.

IoC, Eh?

Inversion of Control, or IoC, is a method of programming that seeks to simplify the code developers must write to access application resources or do something based on input or an event that comes from another part of the application. For instance, the normal way of accessing a logger may be to get a reference to a singleton. The IoC way would be to declare a variable with some metadata that tells the container to “inject” a reference to the correct logger ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required