I keep getting the error message (The name 'tk2dSpriteAnimator' does not denote a valid type ('not found')) when trying to access the animation methods from a Javascript file.
I found the solution that was posted here:
http://forum.unity3d.com/threads/93287-2D-Toolkit-2D-in-Unity-made-simple-RELEASED/page16but could not get this solution to work (file structure is different? Getting different "not found" errors).
I am instantiating the class at the top of my file:
// Link to the animated sprite
private var anim : tk2dSpriteAnimator;
// This script must be attached to the sprite to work.
anim = GetComponent(tk2dSpriteAnimator);
and attempting to access the "Play" method, but the reported error is preventing the code from compiling.
Any help would be greatly appreciated.
-CL