Thursday, November 29, 2007

Actionscript 3 Adventures - ReferenceError: Error #1065: Variable Whatever is not defined.

Make sure that your class is defined as Public.

package{

import flash.display.*;

public class Whatever extends MovieClip{

public function printButton(){}

}

}

Tuesday, November 27, 2007

AS3 Adventures - 1046: Type was not found or was not a compile-time constant: TextField

If your MovieClip has a TextField in it that was placed on the timeline then simply add the following line to the package definition.

import flash.text.TextField;