# Does anybody use "with"?

**URL:** https://forum.kirupa.com/t/does-anybody-use-with/237080
**Category:** flash
**Created:** [August 27, 2007, 3:49am UTC](https://forum.kirupa.com/t/does-anybody-use-with/237080 "2007-08-27T03:49:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rezmason](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rezmason/32/30447_2.png) [@Rezmason](https://forum.kirupa.com/u/Rezmason)
#### Post date: [August 27, 2007, 3:49am UTC](https://forum.kirupa.com/t/does-anybody-use-with/237080/1 "2007-08-27T03:49:17Z")

</div>

Here’s an oldie but a goodie: [remember the **with** statement?](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/statements.html#with) This oddball did some sort of scope magic that lets you treat it as the object normally referenced through “this” in your code block. It looks like it’s still in ECMAScript, 4th Edition.

But has anybody put **with** to good use anymore? In AS3, it doesn’t seem that important. In fact, the examples provided in the language reference (on the page I linked to above) seem to be from an AS2 description of the **with** statement.

Does using it nowadays just obfuscate your code? It seems like **with** ’s become a has-been.
