On pretty much every project that I do, I use an external variable or two to specify the path of a file(generally an XML file). when testing the flash movie you can use one variable and have it use a different one when embedded into the html page. To do this you use the Capabilities class in flash.system. using playerType == “External” which means testing from the IDE. like this:

if(Capabilities.playerType == "External")
{
	_xmlPath = "xml/test.xml";
}
else
{
	_xmlPath = this.loaderInfo.parameters.xmlPath;
}