# Help me understand: why does parent.correct(); not work?

**URL:** <https://forum.kirupa.com/t/help-me-understand-why-does-parent-correct-not-work/296748>\
**Category:** flash\
**Created:** [September 19, 2009, 1:35pm UTC](https://forum.kirupa.com/t/help-me-understand-why-does-parent-correct-not-work/296748 "2009-09-19T13:35:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luwin](https://avatars.discourse-cdn.com/v4/letter/l/3bc359/32.png) [@luwin](https://forum.kirupa.com/u/luwin)\
**Post date:** [September 19, 2009, 1:35pm UTC](https://forum.kirupa.com/t/help-me-understand-why-does-parent-correct-not-work/296748/1 "2009-09-19T13:35:52Z")

</div>

Ok, here is the “problem”.

in actions in my .fla file I create a new object of a class (addChild) which is in an seperate .as file.

Now, in my .as file I want to call a function in the .fla file. This should be the parent right?

So, I try parent.correct(); which does not work. I get the error #1061 (call to a possibly undefined method).

However, when I do this:  
var par:\* = parent;  
par.correct();

Everything works. Why is this? My mind was really boggled by this. Doesn’t make sense to me.
