home *** CD-ROM | disk | FTP | other *** search
- package com.livebrush.data
- {
- public class Help
- {
- private static var singleton:Help = null;
-
- public static var helpRoot:String = "http://www.livebrush.com/help/";
-
- private var fileManager:FileManager;
-
- public var xml:XML;
-
- public function Help(fileManager:FileManager)
- {
- super();
- this.fileManager = fileManager;
- this.xml = fileManager.loadHelp();
- }
-
- public static function loadHelp(id:String) : void
- {
- var helpURL:String = null;
- helpURL = Help.getInstance().xml.ITEM.(@ID == id);
- FileManager.getURL(helpRoot + helpURL);
- }
-
- public static function getInstance(fileManager:FileManager = null) : Help
- {
- var instance:Help = null;
- if(singleton == null)
- {
- singleton = new Help(fileManager);
- instance = singleton;
- }
- else
- {
- instance = singleton;
- }
- return instance;
- }
- }
- }
-
-