Security Error while using External Interface

Hi,

I am trying to access JS functions of the container HTML code from the swf(using External Interface). But until I add the swf in Global Security Settings it doesn’t work, even from localhost.

My question is how to ensure that this problem doesn’t come to users who access the site. If I have to build a crossdomain.xml what should be the content? I am not accessing different domains.

Thanks,
Neeraj

AS Code:

if(ExternalInterface.available)
    {
        fileName=new String();
        fileDesc=new String();
        fileName=ExternalInterface.call("sendFileName");
        fileDesc=ExternalInterface.call("sendFileDesc");
        if(fileName!=null)
        {
            playVid(0, false)
            mcVideoControls.visible = true;
        }
        else
        {
            trace("nothing");
         
        }
    }
    else
    {
        trace("not available");
        
    }

JS code:



<script language="JavaScript" type="text/javascript">
var fileName="video.f4v";
var fileDesc="sample";
function sendFileName()
{
return fileName;
}
function sendFileDesc()
{
return fileDesc;
}
</script>