# AS3 Button Scripts in document class

**URL:** <https://forum.kirupa.com/t/as3-button-scripts-in-document-class/297271>\
**Category:** flash\
**Created:** [September 29, 2009, 12:15am UTC](https://forum.kirupa.com/t/as3-button-scripts-in-document-class/297271 "2009-09-29T00:15:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmellis](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dmellis](https://forum.kirupa.com/u/dmellis)\
**Post date:** [September 29, 2009, 12:15am UTC](https://forum.kirupa.com/t/as3-button-scripts-in-document-class/297271/1 "2009-09-29T00:15:10Z")

</div>

I’m suffering through my first AS3 site. It’s not very complicated, but I cannot get my buttons to work.

Here is my new document class.  
[http://talesfromthehead.com/random/doc\_class4.txt](http://talesfromthehead.com/random/doc_class4.txt)

And here are the errors I got for each mention of b1\_mc, which is just a movie clip on the stage.

1120: Access of undefined property b1\_mc

Since I have import flash.display.MovieClip; at the top of my class, why do I keep getting this error?
