ExternalInterface.call problem

Hi :slight_smile:

I have some trouble getting this to work. First the code…

import flash.external.*;

...

var xml : XML = new XML ();
xml.ignoreWhite = true;
xml.onLoad = function ( success : Boolean ) : Void
{
	if ( success ) {
		...
		for ( var i : Number = 0; i < data.length; i++ )
		{
			var mesto : MovieClip = ...			
			...
			
			mesto.onRollOver = function ()
			{
				_root.zobrazProdejny ( ... );
			};

			...
		}
	}
}
xml.load ( "data.xml" );

function zobrazProdejny ( mesto : XMLNode ) : Void
{
	ExternalInterface.call ( "zobrazProdejny", mesto.firstChild );
}

It doesnt want to call “zobrazProdejny” JS function and instead it outputs an error saying 256 levels of recursion were exceeded… It works ok, if I call it outside of the onRollOver events.

Everything else (passing parameters and stuff) works as suposed. Im publishing for FP8 in AS2.

Thanks for your help, its realy appretiated.
Matthew