John on Flash_Tiger pointed me in the right direction. Basically to fix my issue I had to set both class files to be public (dynamic was not required).
i.e. public class ColorTest extends MovieClip In addition though, I had to make the variables that are the instance names (myBlock and myTextField which is already on stage) public and not private. This seems a bit odd to me, but it might be a requirement for document classes? I will dig further into this one. But for now, this corrects my issue. It compiles and runs as expected now. Charles P. On Mon, Sep 22, 2008 at 3:08 PM, Charles Parcell <[EMAIL PROTECTED]>wrote: > Having read numerous past posts on this list, I am still not clear on how > to fix the issue I have. > > Basically, I have a document class and a class attached to a MC on stage > that extends MovieClip. I have set "Automatically declare stage instances" > OFF. I have imported MyBlock (the class attached to the instance on stage) > into the document class and declared the instance name as type MyBlock. > > import MyBlock > ... > var private myBlock:MyBlock; > > I get no compile errors by I get two 1065 errors. The first is for the > document class (ColorTest) and the second is for the MyBlock class. > > " > ReferenceError: Error #1065: Variable MyBlock is not defined. > ReferenceError: Error #1065: Variable ColorTest is not defined. > " > > What is the magic piece that I am missing to fix this? I fail to understand > how or where Flash expects me to define the document class. > > Charles P. > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders