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 ...

Get Flex on Rails: Building Rich Internet Applications with Adobe Flex 3 and Rails 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.