I can't access deeply nested objects in other objects via Action Script 3. How should I approach this?
Whenever I try to modify/read deeply nested MovieClip objects, output gives me typeerror #1009, but when I cast those objects as movie clips I get typerror #1010. I understand them both, but I don’t know what to do with that, as simple
trace(object.nestedObject.deeplyNestedObject);
would give me errors. Details that might be relevant:
- Strict mode is on, and I want to keep it on.
- Those objects are nested via Adobe Animate gui and all of them have proper instance names.
- Advanced layers are turned off.
- Error is still thrown when code is putted inside deeply nested MovieClips frame.
How can I fix this and how generally should I approach accesing nested objects?
