When testing my application in IDE, I wanted to use some hard coded test data instead of Every time loading the dynamic data. System.capabilities.isDebugger is the boolean property which is true when we are testing in IDE or special Debug Player.

Here is the sample code that I’ve used

[cc lang=”actionscript3″]

if (!System.capabilities.isDebugger) {
        _myxml.load(xmlPath+"?"+"policynumber="+policynumber+"&PolyType="+PolyType+"&strSelectAgentCode="+strSelectAgentCode+"&strCountryCode="+strCountryCode+"&policyStatus="+policyStatus+"&AgncyCde="+AgncyCde+"&passinagency="+passinagency);
} else {
        _myxml.load("xml/table.xml");
}

[/cc]