# AS errors in my code

**URL:** <https://forum.kirupa.com/t/as-errors-in-my-code/316488>\
**Category:** Uncategorized\
**Created:** [November 23, 2010, 11:32am UTC](https://forum.kirupa.com/t/as-errors-in-my-code/316488 "2010-11-23T11:32:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperArmySoldie](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@SuperArmySoldie](https://forum.kirupa.com/u/SuperArmySoldie)\
**Post date:** [November 23, 2010, 11:32am UTC](https://forum.kirupa.com/t/as-errors-in-my-code/316488/1 "2010-11-23T11:32:06Z")

</div>

Hi i need some help getting some AS3 to work. I am creating my own portfolio for web use.

[I have posted here as well](http://forums.adobe.com/message/3294538#3294538)

there are 3 errors messages i am getting when trying to get the program to stop at the end of each page. I have created my menu with links too.

here are the error messages

1. 1026: Constructor functions must be instance methods.

2. /Flash Portfolio /Development\_files/main.as, Line 1 5000: The class ‘main’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.

Line of code: package {

1. Flash Portfolio /Development\_files/mainMenuMC.as, Line 1 5000: The class ‘mainMenuMC’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.

Line of Code: package {

if you would like to see the AS let me know and ill post it up here.

Thanks

Will
