var allowScriptAccess = String ( swf_id.getParams()['allowScriptAccess'] ) . toLowerCase ();
if ( allowScriptAccess != 'always' )
{
alert ('You have to define alloScriptsAcces - otherwise the Flash ExternalInterace does not work \n yourSWFobject.addParam(\"allowScriptAccess\", \"always\")');
}
swf_id = String ( swf_id.getAttribute('id') );
}
}
if ( navigator.appName.indexOf ("Microsoft") != -1 )
this.flashMovie = window[swf_id]
else
this.flashMovie = document[swf_id];
if (this.flashMovie == undefined )
{
//alert (" could not work without Movie " );
return null;
}
}
FlashInterface.prototype.callAS = function ()
{
var params = new Array();
for (var i=0; i<this.callAS.arguments.length; i++)
if ( this.flashMovie[as_func_name] == null || this.flashMovie[as_func_name] == undefined )
{
var outPut = "The AS function:= " + as_func_name + " you try to connect does not exist or is not\nregistered ExternalInterface_netTrek.addCallback ( " + as_func_name + ", callBackObj, callBackFct);";
alert ( outPut );
}
else
{
outPut = this.flashMovie[as_func_name] (params) ;
}
return( outPut ) ;
}
FlashInterface.prototype.trim = function ( str )
{
if ( str == null || typeof str != 'string')
{
return str;
}
var a = 0;
while ( str.charCodeAt ( a ) == 32 )
{
a++;
}
str = str.substr ( a );
a = str.length - 1;
while ( str.charCodeAt ( a ) == 32 )
{
a--;
}
return ( str.substr ( 0, a + 1 ) );
}
FlashInterface.prototype.trimAndMakeTypeSave = function ( cArg )