# Flash Function Scope

**URL:** <https://forum.kirupa.com/t/flash-function-scope/245831>\
**Category:** flash\
**Created:** [December 4, 2007, 6:41pm UTC](https://forum.kirupa.com/t/flash-function-scope/245831 "2007-12-04T18:41:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![froenhoefer](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@froenhoefer](https://forum.kirupa.com/u/froenhoefer)\
**Post date:** [December 4, 2007, 6:41pm UTC](https://forum.kirupa.com/t/flash-function-scope/245831/1 "2007-12-04T18:41:48Z")

</div>

I think I’m losing my mind. I’ve been programming AS for awhile now, and I think i forgot something fundamental.

I can’t call functions inside movie clips “up” the chain, only “down”.

For instance, if I have a movie clip on the stage, and a function on the \_root level, and one in the movie clip, I can call the \_root function from the movie clip instance, but not the other way around…is something wrong with my flash? I’m positive I’ve been making calls this way for years.

I’ve attached a test .fla to illustrate. If it works for someone, then somethings wrong with my flash.

I draw a square on the stage. I convert it to a movie clip. I name it foo. Then I create a function called test in foo that traces “test”. Then from the root, I try to call it:

foo.test();

doesn’t work.

I feel stupid posting this 🙂 thanks for any help.
