# OOP:Adding Movie clip from library

**URL:** https://forum.kirupa.com/t/oop-adding-movie-clip-from-library/313608
**Category:** flash
**Created:** [September 4, 2010, 6:44am UTC](https://forum.kirupa.com/t/oop-adding-movie-clip-from-library/313608 "2010-09-04T06:44:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Luigi\_Vercotti](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Luigi\_Vercotti](https://forum.kirupa.com/u/Luigi_Vercotti)
#### Post date: [September 4, 2010, 6:44am UTC](https://forum.kirupa.com/t/oop-adding-movie-clip-from-library/313608/1 "2010-09-04T06:44:39Z")

</div>

Hello guys  
I’ve got an instance in the library linkaged to Classes.Lights.as  
At the Lights.as I have got

```auto
light.graphics.beginFill(lightColor);
light.graphics.drawCircle(0, 0, lightSize / 2);
light.graphics.endFill();

addChild(light);

```

for some reason I’d like to change it to the light from my library.  
I’ve tried

```auto
private var light:MovieClip = new MovieClip();

```

but that doesn’t work.

How can I do it in OOP?
