2004-12-06, 03:38 AM
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> if(skinHelper == null)
{
// setup skin helper
XmlDocument document = new XmlDocument();
document.Load(PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory() + "\\Skin.xml");
skinHelper = new SkinHelper(document, PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory());
}
// load background image if we havn't already
if (backgroundImage == null)
{
backgroundImage = skinHelper.getNamedImage("Background");
}
[/QUOTE]
each time i try and use skinHelper.getWHATEVER it returns null. the skin file is fine, i can check to see if the node exists, and it does, but still getting null exception, any thoughts?
{
// setup skin helper
XmlDocument document = new XmlDocument();
document.Load(PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory() + "\\Skin.xml");
skinHelper = new SkinHelper(document, PluginHelperFactory.getPluginHelper().GetSkinRootDirectory() + getSkinSubdirectory());
}
// load background image if we havn't already
if (backgroundImage == null)
{
backgroundImage = skinHelper.getNamedImage("Background");
}
[/QUOTE]
each time i try and use skinHelper.getWHATEVER it returns null. the skin file is fine, i can check to see if the node exists, and it does, but still getting null exception, any thoughts?