1 person found this helpful
That error usually indicates that the button instance on the stage, at least in the frame where you are using it, is not named. Make sure that the button instance is named "click_to_enter_btn" in the frame that shows at that stop.
The 1009 error indicates that one of the objects being targeted by your code is out of scope. This could mean that the object....
- is not in the display list
- doesn't have an instance name (or the instance name is mispelled)
- does not exist in the frame where that code is trying to talk to it
- is animated into place but is not assigned instance names in every keyframe for it
- is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
Because you mentioned an animation in your description, I'm suspiscious that it might have to do with the fourth item listed.
If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.
@ Rob and relaxatraja: That did make it crash at first, but I double-triple-checked and fixed it, so that was no longer the issue.
@ Ned: I think you're answer #4 was mostly right. After much more trial and error - and cursing - I decided to move that same bit of AS code to the first frame of my "actions" layer. For some reason, that was all I needed to fix it, and it works fine now. Thank you all for responding so quickly! I don't do this professionally, and I appreciate your concise answers to my novice/rookie questions.