# Functions

**URL:** https://forum.kirupa.com/t/functions/168585
**Category:** Uncategorized
**Created:** [November 8, 2005, 3:03pm UTC](https://forum.kirupa.com/t/functions/168585 "2005-11-08T15:03:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kritikal](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kritikal/32/1699_2.png) [@kritikal](https://forum.kirupa.com/u/kritikal)
#### Post date: [November 8, 2005, 3:03pm UTC](https://forum.kirupa.com/t/functions/168585/1 "2005-11-08T15:03:11Z")

</div>

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

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