# Hardcore Scripting

**URL:** <https://forum.kirupa.com/t/hardcore-scripting/176586>\
**Category:** flash\
**Created:** [January 25, 2006, 6:46am UTC](https://forum.kirupa.com/t/hardcore-scripting/176586 "2006-01-25T06:46:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woyrz](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@woyrz](https://forum.kirupa.com/u/woyrz)\
**Post date:** [January 25, 2006, 6:46am UTC](https://forum.kirupa.com/t/hardcore-scripting/176586/1 "2006-01-25T06:46:03Z")

</div>

I’m working on a project that will require call function using variables example:

```auto

function test1(){
 trace("allo")
}
var test2:String = "test1()"
trace(test2) // now i getting ->test1()
 

```

in fact i want to call the function test1() using the variable test2

i also used the following line

```auto

trace(_root[test2]) // i get a undefined

```

can anyone give me a hand on this one!!!  
woyrz  
[http://www.mediaflexdesign.com](http://www.mediaflexdesign.com)
