# ExternalInterface.call problem

**URL:** <https://forum.kirupa.com/t/externalinterface-call-problem/205826>\
**Category:** flash\
**Created:** [November 2, 2006, 10:44am UTC](https://forum.kirupa.com/t/externalinterface-call-problem/205826 "2006-11-02T10:44:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)\
**Post date:** [November 2, 2006, 10:44am UTC](https://forum.kirupa.com/t/externalinterface-call-problem/205826/1 "2006-11-02T10:44:04Z")

</div>

Hi 🙂

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

```auto
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
