ActionScript to JavaScript, ExternalInterface

Hi, searched for this problem but the solution does not match my case. And if it does I really don’t understand how this works. Anyhow.

First off I import the ExternalInterface within my class. After that I make the call."myFunction", "Works!");

My script which is in the HTML looks like this.

<script language="javascript">
	function myFunction(string)

Now why won’t this work? I always get some security-complaint but all the files are local. Im very very sure… :slight_smile: