Functions

I was just wondering if it’s possible to pass a variable from one swf to a function on another swf…?

I have 2 containers on my main stage, each one loads an external swf, I want one to send a variable to a function in the other container.

I simply tried calling the function by doing _root.container2.fncTest(“works”); just to see if it works

and in container2 I have

function fncTest(test):Void {
myText = test; //dynamic text box on the stage
}

but that didn’t seem to work… Do I have to make the function public or that only works for classes?