# How to download function in string and execute it?

**URL:** https://forum.kirupa.com/t/how-to-download-function-in-string-and-execute-it/287019
**Category:** flash
**Created:** [April 24, 2009, 5:00pm UTC](https://forum.kirupa.com/t/how-to-download-function-in-string-and-execute-it/287019 "2009-04-24T17:00:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![charlo020](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@charlo020](https://forum.kirupa.com/u/charlo020)
#### Post date: [April 24, 2009, 5:00pm UTC](https://forum.kirupa.com/t/how-to-download-function-in-string-and-execute-it/287019/1 "2009-04-24T17:00:12Z")

</div>

Hello everyone,

I would like to download a function as a string from my server into a Flash swf-document on the computer of a customer. So this download would be executed client-side. Then I would like to ‘execute’ the string, just as I do with the ‘eval’-function in php/javascript.

The important thing here is that the function is not stored client-side on the harddisk (like the swf-document) and that the function only remains in the computer memory.

Would that be possible with Actionscript 3 in Flash CS3?

Thanks!  
Charlo
