I've noticed occassionally when using code snippets in Flash CS5 I'll get this message, "to add code for this object please select an instance of the object in either the main timeline or in a movieclip timeline". It seems very inconsistent in that I'll use a snippet with no issues in one file...and then in the next file which as far as I can tell is set up exactly the same way the snippet can't be applied.
In every instance that this has occured the actionscript will work if I type it in manually. For example the code snippet wouldn't work for 'stop at this frame' but when I opened the action script window and manually typed "stop ();" it worked no problem. This isn't a great fix though as some of the snippets are significantly more complicated. The whole idea of having them of course is to use common code without having to remember/type it all out.
Does anybody know what might be causing this glitch?
Thanks.