Once the container is available you should store a reference to the container
and listen for ContainerEvent.REFRESH events to update your application
whenever the container's data updates.
Note, there may be certain situations where the open container call fails. In which case
the ContainerEvent.ERROR will be dispatched. You should listen for this event as well and
handle appropriately, perhaps trying to open the container again at some later point.
Retrieving information from the container is a simple process of calling the stringForKey function.
This function will return the stored variable or macro value as a String value, or will return an
empty string ("") if there was an error.
var value:String = container.stringForKey("some_variable_or_macro_name");
trace( container.containerId+": ["+key+"] = "+ value );
Refreshing a container should only be done very occasionally, perhaps only once or twice a day.
You should listen for the ContainerEvent.REFRESH events from a container (as shown above)
and then call the refresh function.
The following code continues on from the previous snippets, you must first have opened and
stored your container.