trun/flashblocks — Issue #3: Error when editing an argument's value
Author: trun
Created: 2012-01-24 07:00:40+00:00
State: open

```
ArgumentError: Error #2024: An object cannot be added as a child of itself.
at flash.display::DisplayObjectContainer/addChildAt()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5094]
at mx.core::Container/addChildAt()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\Container.as:2258]
at mx.core::Container/addChild()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\Container.as:2183]
at com.flashblocks.blocks::CommandBlock/connectAfter()[G:\Projects\flashblocks\src\com\flashblocks\blocks\CommandBlock.as:37]
at com.flashblocks.blocks::CommandBlock/connectAfter()[G:\Projects\flashblocks\src\com\flashblocks\blocks\CommandBlock.as:43]
at com.flashblocks::Page/tryConnection()[G:\Projects\flashblocks\src\com\flashblocks\Page.as:106]
at com.flashblocks::Page/tryConnection()[G:\Projects\flashblocks\src\com\flashblocks\Page.as:132]
at com.flashblocks::Page/tryConnection()[G:\Projects\flashblocks\src\com\flashblocks\Page.as:132]
at com.flashblocks::Page/tryConnection()[G:\Projects\flashblocks\src\com\flashblocks\Page.as:132]
at com.flashblocks::Page/addBlock()[G:\Projects\flashblocks\src\com\flashblocks\Page.as:43]
at com.flashblocks::BlockDragLayer/onBlockDragComplete()[G:\Projects\flashblocks\src\com\flashblocks\BlockDragLayer.as:141]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at com.flashblocks::Workspace/rebroadcastEvent()[G:\Projects\flashblocks\src\com\flashblocks\Workspace.as:70]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9440]
at com.flashblocks.blocks::SimpleBlock/onMouseUp()[G:\Projects\flashblocks\src\com\flashblocks\blocks\SimpleBlock.as:151]
```

Four command blocks were stacked vertically. When editing the argument of the final block in the stack the above error occurred.