# Naughty eval type behaviour in AS1/2

**URL:** https://forum.kirupa.com/t/naughty-eval-type-behaviour-in-as1-2/232122
**Category:** random
**Created:** [July 11, 2007, 12:29pm UTC](https://forum.kirupa.com/t/naughty-eval-type-behaviour-in-as1-2/232122 "2007-07-11T12:29:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Charleh](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Charleh](https://forum.kirupa.com/u/Charleh)
#### Post date: [July 11, 2007, 12:29pm UTC](https://forum.kirupa.com/t/naughty-eval-type-behaviour-in-as1-2/232122/1 "2007-07-11T12:29:07Z")

</div>

I want to take this opportunity to scold Macromedia for allowing users to concatenate strings into object names in AS1.0 and 2.0. It has encouraged bad habits and now I keep seeing people coding in AS3.0 saying

‘Why isn’t this working?’

[“someClipName” + i].doSomething();

Naughty naughty!

But because Flash is quite sexy I’ll let you off Mr M. Media
