First of all, I'm a complete noob in Flash and don't really know what I'm doing :/ (it's a favour for a friend).

I'm working with CS6 and using action script 2.

So I've seen many people suggesting using

```
getURL("javascript:myFunction();");

```

or 

```
import flash.external.ExternalInterface;

ExternalInterface.call("myFunction()");

```

for calling the method myFunction that I have in my html file (in the head). However, for some reason the method is not invoked. Apart of that I have in my frame code that just stops a flash film that ends (I tried putting this before and after the js invocation)

```
stop();

```

I do also have on my html under the `<object>`:

```
<param name="allowScriptAccess" value="always" />

```

and again in the nested `<!--[if !IE]>-->` .

(If needs be, I can add the html file as well.) Can anyone shed a light on what am I doing wrong? Removing the stop(); doesn't seem to change anything either (apart of the film being replayed.