I have developed several actionscript classes. Two of these
classes are associated with MovieClip objects in the library. The
MovieClips have their Linkage Base Classes set to their respective
package and class locations and when I check the Linkage settings
(using the check mark icon) Flash CS3 reports that it can find the
associated classes for both MovieClips.
When I check the syntax of my code there are no problems, and
when I test the Flash movie no Compile Errors are shown. Yet, in
the output window I get the following error:
ReferenceError: Error #1065: Variable class1 is not defined.
ReferenceError: Error #1065: Variable class2 is not defined.
I have placed class1 and class2 in the above error messages
to represent the classes that are associated with the MovieClip.
Am I missing an import command somewhere? I have the base
class path properly set in the preferences of Flash CS3.
It appears that this issue was due to some of my classes not
being marked as public. I had been following examples from AS2 that
had the classes marked as dynamic without a private or public
identifier. Apparently, AS3 assumes all unmarked classes are