I had a particularly sticky flash problem where a MovieClip worked perfectly when run on its own, but when loaded into a container clip using a loader, would give:
Error #1056: Cannot create property someProperty on loaded clip myLoadedClip
At first I thought it was some kind of timing problem or failure to declare the items in the clip, but it turned out, simply adding the word dynamic to the class definition fixed the problem. Dynamic classes can have properties added at runtime. The MovieClip class is already dynamic, but apparently, the dynamic property is removed in some other part of my code.
Many thanks to Flep of flepstudio for this article which helped solve the problem.
Thank you so much for this. I can't tell you how many other ways I tried to fix this. I could test the offending fla and document class apart from my main application just fine. When I went to add the resulting swf to my main application and look after event listeners, it started through this error.
Thanks!
Posted by: Burton on December 1, 2008 11:24 AM