# Can't seem to get my display objects to link to their class

**URL:** <https://forum.kirupa.com/t/cant-seem-to-get-my-display-objects-to-link-to-their-class/322914>\
**Category:** flash\
**Created:** [June 8, 2011, 3:23pm UTC](https://forum.kirupa.com/t/cant-seem-to-get-my-display-objects-to-link-to-their-class/322914 "2011-06-08T15:23:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sogj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sogj/32/3189_2.png) [@sogj](https://forum.kirupa.com/u/sogj)\
**Post date:** [June 8, 2011, 3:23pm UTC](https://forum.kirupa.com/t/cant-seem-to-get-my-display-objects-to-link-to-their-class/322914/1 "2011-06-08T15:23:15Z")

</div>

Noob question here, it’s gonna be a simple one, I’m sure!

I have 50 movie clips that are on the stage. Each has a unique instance name - puzzleAZ, puzzleAR, etc.

I have a class called GeoPuzzle that inherits from flash.display.MovieClip.

In library - properties I have linked each movie clip to the GeoPuzzle class.

The class definition is “com.freerangeeggheads.puzzleography.GeoPuzzle.NameOfEachStateHere” which reflects the folder heirarchy on my harddrive (project folder (where the FLAs are) -\> com -\> freerangeeggheads -\> puzzleography -\> GeoPuzzle.as)

However, GeoPuzzle contains methods and properties I am unable to access from the instantiated objects on my stage.

So inside GeoPuzzle is the function setInitial(some parameters here). Trying puzzleAZ.setInitial(sending parameters) returns the output error “setInitial is not a function”. Even though the code compiles fine it gives me a runtime error.

What am I doing wrong? Flash obviously doesn’t recognize these objects as instances of my GeoPuzzle class - how do I properly link them?
