Question

In document class, constructor, following line produces following error:

name = "hello world";
Error: Error #2078: The name property of a Timeline-placed object cannot be modified.

Is this doable or hackable?

Was it helpful?

Solution

I did some test, and it seems you can't. "MainTimeline is the default class used for the document class. The document class is the display object which is added to the stage when the SWF movie is loaded. Underneath it is a normal class which extends MovieClip." (found here on SO) Probably the implementation of this class blocks you to change its name. As you're not instantiating it, probably flash assign a name to this instance and doesn't want you to change it :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top