AS3 Error: 1046: Type was not found or was not a compile-time constant
File under Adobe Flash 9 / Action Script 3 (AS3) Errors
Error Message: 1046: Type was not found or was not a compile-time constant: caseStudyLink.
The Problem: I was getting this error message when trying to tween a MovieClip on the stage. Flash was telling me that the error message was coming from one of my package files – in this case, it was a custom class that I was using to extend the parent MovieClip. It is notable that this class had no direct mention of the object I was trying to tween.
Everything was running smoothly until I added an instance name to the existing MovieClip.
The Cause: I can’t say for sure why, but for some reason Flash was unable to find the object I was referring to, even though it was indeed in the Library and had the proper class name filled in.
The Solution: I duplicated the offending MovieClip in the Library, then used the “swap” button in the properties pane to swap the parent object in every keyframe that the instance was being used. Presto – problem went away.
Go figure.

October 27th, 2008 at 7:45 am
I had the same problem and it was driving me nuts! it’s a very wierd bug, but your solution works… problem solved! tks
November 28th, 2008 at 5:41 am
I had the same problem for only ONE out of 6 clips in my library, and it happened to be one for which I had mistakenly given a Linkage name identical to the instance name. So Flash was looking for a class that did not exist… I duplicated it but let flash decide the linkage name(flash does create its own class for linked objects, unless you specify one) And then I swapped as you did, and indeed the error (one of the 100s we now get in as3 which makes prior 5 minute tasks last a whole weekend) was gone.
October 15th, 2009 at 10:13 pm
Oh god I swear i just wanna punch Adobe square in the face!
(Fucking Ass holes)
bless you for this answer Eddie!
February 19th, 2010 at 10:58 pm
Thanks!
April 16th, 2010 at 9:04 am
Thank you, it helped me. :)
April 21st, 2010 at 10:51 pm
Thanks for posting that solution. I ended up changing instance name after exporting and the prob went away. But your post got me thinking in that direction.
May 1st, 2010 at 11:22 pm
Thanks so much. I’m regretting so much that I ever thought to use Flash for my class project. I hope Steve Jobs kills it :P
May 31st, 2010 at 5:41 pm
Man, I had the same problem and it bothered me to no end.
Thanks a lot!
Also, mine seemed to start working if I just leave the instance name blank.