Calling functions in loaded swf

Hi!

I am having problems calling functions in a SWF (B.swf) which I load into my first SWF (A.swf).

Nothing seem to happen when I call the functions, values that are supposed to be returned from the function call are undefined.

Can someone tell me what I’m doing wrong?

A.swf

import x;
import y;

class abc{

private var ex1;
private var ex2;

public function exampleFunction {
System.security.allowDomain("*");
loadMovieNum(“http://127.0.0.1/.../B.swf”, 1);

	trace(_level1.functionB());

}

}

B.swf

import x;
import y;

class def{

private var ex3;
private var ex4;

public function functionB():String{
System.security.allowDomain("*");
return “test”;
}

}