Author: Romuald Quantin - www.soundstep.com
Information:
Blog page - SomaUI
How does it work - Soma Protest
Project Host - Google Code
Documentation - Soma ASDOC
Class version: 2.0
Actionscript version: 3.0
Copyright:
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied.
See the License for the specific language governing rights and
limitations under the License.
The Original Code is Soma.
The Initial Developer of the Original Code is Romuald Quantin.
Initial Developer are Copyright (C) 2008-2009 Soundstep. All Rights Reserved.
Usage:
The ContentManager class is loading (and reloading) the XML Site Definition and give access to it to the user. The first time the XML is loaded, Soma will afterwards start the second step of its initialization process.
Some methods are available to easily retrieve XML nodes commonly used, such as the backgrounds children nodes, the base children nodes, the XML of a page and the content node of a page.
The global content manager instance is accessible using:
Soma.getInstance().content
The XML Site Definition is accessible using (the XML returned is not a copy but the one that is used by all the framework, be careful with changes):
Soma.getInstance().content.data
The ContentManager is using two internal commands that are not meant to be used by the user but you can listen to them.
Soma.getInstance().addEventListener(ContentEvent.LOADED, eventHandler);
Soma.getInstance().addEventListener(ContentEvent.UPDATED, eventHandler);
data:XML [read-write]Implementation
public function get data():XML
public function set data(value:XML):void
public var isLoaded:Boolean
public static var KILL_CACHE:Boolean
public function ContentManager()
public function getBackgrounds():XMLList
Returns
public function getBase():XMLList
Returns
public function getPage(id:String):XMLParameters
Returns
public function getPageContent(id:String):XMLParameters
Returns
public function reload(xmlFile:String):voidParameters
public function start(xmlFile:String):voidParameters
Soundstep - Soma