It's pretty dang annoying to troubleshoot all the variations of how the environment can be
swf
swf+embedded licence
swf+embedded xml
and also it looks like viewer.addVariable("xml", "data.xml");
will not override any embedded xml
And krpano license failures should override any errors set to false, because generating final xmls generally have this set, but the final steps are in embedding and encrypting... also license errors could call an action or at least a show a specified string , say when a time expires, the client knows whats going on and can get instructions on what to do.