ActionScript 3 Error #2078

Flash / Flex Error #2078: The name property of a Timeline-placed object cannot be modified.

ActionScript 3 Error #1061 Description:
The MovieClip or Button that you have on the stage cannot be changed with code. It already has a name so you can’t change it. If you are visiting this page my guess is that you are thinking that you have a dynamic movieClip that you named with code, yet you probably have one with the same name on the stage already.

Flash / Flex Error 1061 Fix:
Stop trying to change a named object on the stage that already has one.

Bad Code:

myMovieClip.name = “Bob”;

Good Code:

//no code here

Thanks and Happy Flashing

Curtis J. Morley

2 thoughts on “ActionScript 3 Error #2078

  1. I just ran into this problem, but I wasn’t changing the name of a MovieCilp or button. So I’ll leave this for future people having this issue.

    I had a textField with the variable name of “name”. Which was causing the same problem. Took a bit of noodle scratching to figure that out.

Comments are closed.