# Executing an AS command stored as text?

**URL:** https://forum.kirupa.com/t/executing-an-as-command-stored-as-text/222276
**Category:** Uncategorized
**Created:** [April 12, 2007, 5:42am UTC](https://forum.kirupa.com/t/executing-an-as-command-stored-as-text/222276 "2007-04-12T05:42:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![iceblueflame](https://avatars.discourse-cdn.com/v4/letter/i/bbe5ce/32.png) [@iceblueflame](https://forum.kirupa.com/u/iceblueflame)
#### Post date: [April 12, 2007, 5:42am UTC](https://forum.kirupa.com/t/executing-an-as-command-stored-as-text/222276/1 "2007-04-12T05:42:27Z")

</div>

here’s what i need to do. suppose i’ve stored some actionScript statement like say movieClip.\_x = 200;  
or movieClip.removeMovieClip();  
as a text string inside a string variable or a text file.  
is there a function that can take this string as an argument and execute the statement?
