# Autoformat Bug?

**URL:** https://forum.kirupa.com/t/autoformat-bug/297636
**Category:** flash
**Created:** [October 6, 2009, 10:26am UTC](https://forum.kirupa.com/t/autoformat-bug/297636 "2009-10-06T10:26:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)
#### Post date: [October 6, 2009, 10:26am UTC](https://forum.kirupa.com/t/autoformat-bug/297636/1 "2009-10-06T10:26:09Z")

</div>

Hi,

When I type out code, I tend to press the autoformat button quite a bit just to make sure there are no errors with my coding while making it look good while I’m at it.

But I ran into this little problem. You see whenever you type “instanceof MovieClip” like so…

```auto
if (this.getChildAt(j)instanceof MovieClip) {
        characters.push(this.getChildAt(j));
    }

```

And then hit the autoformat… Flash(CS4) will tend to bunch “instanceof MovieClip” together into “instanceofMovieClip”… which throws up errors.

Quite odd. Is this a bug… Or is it suppose to be like that?
