# FMX beginner needs info about eval

**URL:** <https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275>\
**Category:** flash\
**Created:** [May 19, 2003, 10:33pm UTC](https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275 "2003-05-19T22:33:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lac](https://avatars.discourse-cdn.com/v4/letter/l/4bbf92/32.png) [@lac](https://forum.kirupa.com/u/lac)\
**Post date:** [May 19, 2003, 10:33pm UTC](https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275/1 "2003-05-19T22:33:07Z")

</div>

Hi All,

I have a question about eval - I’m pretty sure that I can’t use it the way I would use Java’s eval so my question is really… is there something out there that works like the Java eval or do I need to write it myself?

I need to write something that will parse a string and then evaluate the expression that results like “x += 10” where x is a variable name and then the action to be taken against x.

Any help would be greatly appreciated.

Thanks in advance,  
Liz

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 2:36pm UTC](https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275/2 "2003-05-20T14:36:14Z")

</div>

I’m pretty sure you have to parse that String by hand, unfortunately. There are quite a few Actionscript parsers on the web though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 3:14pm UTC](https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275/3 "2003-05-20T15:14:46Z")

</div>

[http://www.flashcomponents.net/component.cfm?nav=2&id=118](http://www.flashcomponents.net/component.cfm?nav=2&id=118)

The downside of course, aside from lack of full compatibility (which it doesnt seem you need) is the fact that this process of parsing strings is much slower than normal calculations.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 4:42pm UTC](https://forum.kirupa.com/t/fmx-beginner-needs-info-about-eval/21275/4 "2003-06-04T16:42:45Z")

</div>

Oh well. Thanks for the help, that’s kind of what I thought though ☹
