#include "gameFunctions/copyObject.as"
#include "gameFunctions/writeXml.as"


saveGameClipboard = function()
{
	//trace("save - RAM.swfLoader.permSwf: "+RAM.swfLoader.permSwf);
//	trace("\n saveGame()");
	if(ROOT.level_xml.filePath)
	{// if:  a level is loaded
		ROOT.saveSettings( RAM );
		
		// copy RAM as XML
		ram_xml = new XML();
		writeXml( RAM, ram_xml );
		var result = String( ram_xml );
	}// if:  a level is loaded
	return result;
}// saveGameClipboard()