# Odd Issue with Error #1010

**URL:** <https://forum.kirupa.com/t/odd-issue-with-error-1010/283939>\
**Category:** flash\
**Created:** [March 12, 2009, 6:53pm UTC](https://forum.kirupa.com/t/odd-issue-with-error-1010/283939 "2009-03-12T18:53:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoodnightMG](https://avatars.discourse-cdn.com/v4/letter/g/59ef9b/32.png) [@GoodnightMG](https://forum.kirupa.com/u/GoodnightMG)\
**Post date:** [March 12, 2009, 6:53pm UTC](https://forum.kirupa.com/t/odd-issue-with-error-1010/283939/1 "2009-03-12T18:53:35Z")

</div>

I have the following line of code below:

this is in a loop where “i” is given a value:

* * *

var blade:BolMC = new BolMC();  
contain.addChild(blade);  
bladeArray.push(blade);  
blade.y = compensationY +(blade.height\*i);  
blade.num = i;

trace("------------------1")

var body:BodyText = new BodyText();  
blade.addChild(body);  
blade.body.y = blade.header.height+10;

trace("------------------2")

* * *

both BolMC and BodyText are defined in the library, BolMC passes and is attached to its target then the “trace (—1)” passes, however soon after I recieve the dreaded 1010 error and it never reaches the “trace (—2)”

It seems bizzare to me, any ideas?
