# Loading a clip that does not actually exist

**URL:** <https://forum.kirupa.com/t/loading-a-clip-that-does-not-actually-exist/317745>\
**Category:** flash\
**Created:** [January 1, 2011, 1:28am UTC](https://forum.kirupa.com/t/loading-a-clip-that-does-not-actually-exist/317745 "2011-01-01T01:28:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [January 1, 2011, 1:28am UTC](https://forum.kirupa.com/t/loading-a-clip-that-does-not-actually-exist/317745/1 "2011-01-01T01:28:50Z")

</div>

Edit: k I totally screwed up this problem, sorry guys I’ll be making a new thread with a clearer question

Hi

In my application I have a class Map, which is an as file that extends MovieClip. Map is used by the document class Core. I have multiple .fla files whose document classes all extend Map, and in each .fla, in the library, there’s clip map\_1, map\_2, map\_3, etc. Now I load one of these maps into Core.

Map has a method addFirst():  
public function addFirst(){  
stg.addChild(new map\_1())  
}

but this generates the error “Variable Map\_1 is not defined” when I use it in Core, I guess it’s because in Map itself map\_1 is not defined, but it is in every children.  
How do I solve this problem?
