# Adding Movieclip in Library through Class to Frame

**URL:** <https://forum.kirupa.com/t/adding-movieclip-in-library-through-class-to-frame/318395>\
**Category:** flash\
**Created:** [January 18, 2011, 11:44pm UTC](https://forum.kirupa.com/t/adding-movieclip-in-library-through-class-to-frame/318395 "2011-01-18T23:44:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alycone](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@Alycone](https://forum.kirupa.com/u/Alycone)\
**Post date:** [January 18, 2011, 11:44pm UTC](https://forum.kirupa.com/t/adding-movieclip-in-library-through-class-to-frame/318395/1 "2011-01-18T23:44:33Z")

</div>

Okay, so I decided to try putting some child movieclip switches into the .as instead of in the frames. After a lot of Googling and reading, I think I learned that each of those movieclips need to be in their own .as. Anyway, I tried to do it and the movieclip, which is located in the .fla library and does have export checked off, is not showing up when I play the file.

The movieclip has this .as to itself:

```auto
package emotion{
 import flash.display.MovieClip;
 public class gizmoAmused extends MovieClip {
  private var mc:MovieClip;
  public function gizmoAmused():void {
   mc = new MovieClip();
   super();
   mc.x = 268;
   mc.y = 99;
  }
 }
}

```

In another .as, I have something like this:

```auto

package {
 import flash.text.*;
 import flash.display.MovieClip;
 import fiawtglobals;
 import emotion.gizmoAmused;
 public class fiawtconvs { 
...
 
  public static var charFace:MovieClip = new MovieClip();
  public static var gizAmu:emotion.gizmoAmused = new emotion.gizmoAmused();
 
...
 
  charFace = gizAmu;
 
...

```

Then, in the timeline, I have something like this:

```auto

stop();
import flash.text.*;
import flash.events.MouseEvent;
import flash.display.*;
import fiawtglobals;
import fiawtconvs;
import gizmoAmused;
 
...
 
addChild(fiawtconvs.charFace);
 
...

```

I am rather confused. I managed to get some TextFields working from the fiawtconvs.as with about the same code, though this movieclip does have the extra extends MovieClip thing, which I am very sure is related to whatever I did wrong. Flash tells me there are no compiler errors and nothing shows up in the debugging console when I open it in that mode. The movieclip simply does not show up.

Any help would be greatly appreciated.
