I am migrating a Flex API project from 1.0 to 2.5.
I have gotten the project to a point that there are no errors (a few warnings) however; when I run the project the map doesn't load but displays the Main Menu with the appropriate dropdown menus (Navigate, Tools, Select a BaseMap and Info). The identify/layer legend widgets will display (without data obviously as the map won't load)
To get the project to this point, I have the old version Stylemanager commented out
Example)
In UIManager.as:
public class UIManager extends EventDispatcher
{
private var container:SiteContainer = SiteContainer.getInstance();
private var configData:ConfigData;
public function UIManager()
{
super();
SiteContainer.addEventListener(AppEvent.CONFIG_LOADED, config);
}
private function config(event:AppEvent):void
{
configData = event.data as ConfigData;
for (var i:Number = 0; i < configData.configUI.length; i++)
{
var id:String = configData.configUI.id;
var value:String = configData.configUI.value;
if (id == "stylesheet")
{
//StyleManager.loadStyleDeclarations(value);
}
}
}//config
}//UIManager class
When I attempt to update this (and change the code as follows):
import IStyleManager2
IStyleManager2.loadStyleDeclarations2(value)
I receive an error "access to undefined class/property"
Does that variable value need to be an array?