# A few thoughts on "Illegal Operation Error"

**URL:** <https://forum.kirupa.com/t/a-few-thoughts-on-illegal-operation-error/305947>\
**Category:** flash\
**Created:** [March 6, 2010, 1:28am UTC](https://forum.kirupa.com/t/a-few-thoughts-on-illegal-operation-error/305947 "2010-03-06T01:28:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [March 6, 2010, 1:28am UTC](https://forum.kirupa.com/t/a-few-thoughts-on-illegal-operation-error/305947/1 "2010-03-06T01:28:36Z")

</div>

Here is the Language Reference page if it helps anyone:  
[http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/flash/errors/IllegalOperationError.html](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/errors/IllegalOperationError.html)

First of all, I’m not finding any way to actually set the “errorID”. You need to set in in the constructor, as once the Error instance is created, the “errorID” property becomes read-only, however, the only constructor option available is “message”.

Second, if you try to set some DisplayObject properties such as “x”, “y”, “alpha”, “rotation” etc on the Stage, an error is thrown.  
[http://help.adobe.com/en\_US/AS3LCR/Flash\_10.0/flash/display/Stage.html](http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html)

> **[Error: Error #2071: The Stage class does not implement this property or method.](http://iqandreas.blogspot.com/2009/09/error-error-2071-stage-class-does-not.html)**
>
> Error: Error #2071: The Stage class does not implement this property or method. at Error$/throwError() at flash.display::Stage/set...

The Language Reference says that an “Illegal Operation Error” is thrown, however, the error has an error number attached, and it seems like a regular, plain “Error” is thrown. Could someone double check this? I’m still without a compiler… [SIZE=1](I have the external harddrive now so I can switch back to and restore Windows, but I’m just really liking Linux. :thumb:[/SIZE]
