# Same class name in loaded swf?

**URL:** <https://forum.kirupa.com/t/same-class-name-in-loaded-swf/291404>\
**Category:** Uncategorized\
**Created:** [June 29, 2009, 12:24pm UTC](https://forum.kirupa.com/t/same-class-name-in-loaded-swf/291404 "2009-06-29T12:24:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omnivibe](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@omnivibe](https://forum.kirupa.com/u/omnivibe)\
**Post date:** [June 29, 2009, 12:24pm UTC](https://forum.kirupa.com/t/same-class-name-in-loaded-swf/291404/1 "2009-06-29T12:24:10Z")

</div>

I have parent.swf which uses a class called ObjEvent.

parent.swf then loads child.swf, which also uses a class called ObjEvent.

However- if the class which child.swf uses is somehow different than the one parent.swf uses (i.e. uses a public var which isn’t defined in the other), I get errors. How can I avoid this? I want child.swf to act as its own… especially if child.swf weren’t developed by myself and just happened to use a class of the same name of one I use in parent.swf. Help!
