# Subclass, Superclass issue

**URL:** <https://forum.kirupa.com/t/subclass-superclass-issue/266683>\
**Category:** Uncategorized\
**Created:** [July 23, 2008, 1:15pm UTC](https://forum.kirupa.com/t/subclass-superclass-issue/266683 "2008-07-23T13:15:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dewey](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dewey](https://forum.kirupa.com/u/dewey)\
**Post date:** [July 23, 2008, 1:15pm UTC](https://forum.kirupa.com/t/subclass-superclass-issue/266683/1 "2008-07-23T13:15:46Z")

</div>

Hey Gang,

I have a superclass called “BaseWindow” that all my smaller windows in my flash app are extending.

All these windows have a movieclip as their background (basically just white with an orange border).

I want to be able to access the size of these backgrounds. I have given them all the name “window\_mc” and in my BaseWindow class, in the constructor I added the line \_bg = this.getChildByName(“window\_mc”) as MovieClip;

So there shouldn’t be an issue, but now when I compile I get a load of errors, the first being:  
1152: A conflict exists with inherited definition windows:BaseWindow.window\_mc in namespace public.

That error occurs on one of my windows. If I remove the “window\_mc” from that instance of the window, the same error will come from another of the windows…

Can someone explain this to me?

Thanks,

–d
