# Help with AS 2.0 Class and assignment to MovieSymbol

**URL:** <https://forum.kirupa.com/t/help-with-as-2-0-class-and-assignment-to-moviesymbol/169751>\
**Category:** flash\
**Created:** [November 19, 2005, 1:02am UTC](https://forum.kirupa.com/t/help-with-as-2-0-class-and-assignment-to-moviesymbol/169751 "2005-11-19T01:02:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyICON](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@johnnyICON](https://forum.kirupa.com/u/johnnyICON)\
**Post date:** [November 19, 2005, 1:02am UTC](https://forum.kirupa.com/t/help-with-as-2-0-class-and-assignment-to-moviesymbol/169751/1 "2005-11-19T01:02:31Z")

</div>

Hi, I have made a Picture class, and have it in a function called center. It’s supposed to center the picture on the stage. It is defined as follows:

```auto
	public function center()
	{
		trace("Centering picture.");
	}

```

I have also created a MovieClip symbol in my library called PictureHolder and assigned the Picture class to it. When I tried to execute the center function through an instance of the PictureHolder symbol, nothing is traced.

**[size=1]Example: [/size]**

```auto
pH.center();

```

where pH is an instance of PictureHolder and is on the stage.

I’m new to this, any help would be appreciated. Thanks =)
