# Please Help! custom function call

**URL:** <https://forum.kirupa.com/t/please-help-custom-function-call/161882>\
**Category:** flash\
**Created:** [September 7, 2005, 9:49pm UTC](https://forum.kirupa.com/t/please-help-custom-function-call/161882 "2005-09-07T21:49:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oportocala](https://avatars.discourse-cdn.com/v4/letter/o/db5fbb/32.png) [@oportocala](https://forum.kirupa.com/u/oportocala)\
**Post date:** [September 7, 2005, 9:49pm UTC](https://forum.kirupa.com/t/please-help-custom-function-call/161882/1 "2005-09-07T21:49:32Z")

</div>

Hy!  
I seem to have run into a more delicate problem. I want to execute a custom function from action script, a function with a name that is trasmitted trough a string.

For example function named \*\*Move \*\*[

```php
Move = function(arg1){..}

```

] i want to do something like  
callfunction(“Move”,arg1);

is this at all posibile in Action Script?  
or it would be even better if the script could internally execute a string like a misc function in php.  
e.g.:

```php
eval("Move(a);") 

```

[COLOR=Silver]eval() evaluates the string given in code\_str as PHP code. Among other things, this can be useful for storing code in a database text field for later execution. [/COLOR]  
How bout that? Possible?

If anyone was some insight into the problem it would be greatly apreciated.  
Thanks everyone!
