Protect against a reload of the XML data while loading

SVN:trunk[2085]
This commit is contained in:
Denis Flaven
2012-06-07 13:28:57 +00:00
parent 47f13d6b70
commit d73e1f5fd3
2 changed files with 5 additions and 0 deletions

View File

@@ -48,6 +48,7 @@
m_aNodes = new Array();
m_sExclude = '';
m_fZoom = 1;
m_oLoader = null;
initParameters();
var success = true;
if (ExternalInterface.available)
@@ -168,6 +169,10 @@
var myString:String = m_sDataUrl+sSeparator+'relation='+m_sRelation+'&class='+m_sObjClass+'&id='+m_sObjId+'&exclude='+m_sExclude;
trace("Requesting:"+myString);
var myXMLURL:URLRequest = new URLRequest(myString);
if (m_oLoader != null)
{
m_oLoader.close();
}
m_oLoader = new URLLoader();
m_oLoader.addEventListener(Event.COMPLETE, onXMLLoadComplete);
m_oLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onXMLLoadError);

Binary file not shown.