How to download function in string and execute it?

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