# Need to call a functionname that is a combination of a variable & set text...help

**URL:** <https://forum.kirupa.com/t/need-to-call-a-functionname-that-is-a-combination-of-a-variable-set-text-help/235586>\
**Category:** flash\
**Created:** [August 13, 2007, 7:41am UTC](https://forum.kirupa.com/t/need-to-call-a-functionname-that-is-a-combination-of-a-variable-set-text-help/235586 "2007-08-13T07:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![niklasinla](https://avatars.discourse-cdn.com/v4/letter/n/8797f3/32.png) [@niklasinla](https://forum.kirupa.com/u/niklasinla)\
**Post date:** [August 13, 2007, 7:41am UTC](https://forum.kirupa.com/t/need-to-call-a-functionname-that-is-a-combination-of-a-variable-set-text-help/235586/1 "2007-08-13T07:41:19Z")

</div>

Hi there!  
I have a variable in the \_root called section.  
Now I want to call hemmaAnimation(); within a the global function (see below).  
So I set the section variable to hemma & tried these:

\_global.sectionAnimation = function(){  
thissection+“Animation”;

};

\_global.sectionAnimation = function(){  
“section”+Animation();

};

\_global.sectionAnimation = function(){  
\_root.section+“Animation”();

};

But no luck…  
Any suggestions?

Niklas
