mike chambers | about

Problems with left side eval in Flash MX

Thursday, May 9, 2002

I am still seeing a lot of confusion over this issue, so i thought i would try to clarify. You can no longer use eval() on the left side of a statement. However, this only applies when publishing as a Flash 6 or greater SWF. This change was made in to be more consistent with ECMA-262.
Couple of points:

Here are links to technotes that describe the issue:

As a general rule, you should use this[“foo”] instead of eval(“foo”), even when authoring for Flash 5.
Update [5/14/02] : The technote has been updated. You can read a summary of the changes in the post.</p>

twitter github flickr behance