Reputation: 1758
I'm going to try to describe the issue as clear as possible:
Note: The import of the child class alone doesn't do anything (probably because it is discarded for not being used), but actually mentioning the class anywhere in the public document class triggers the weird behavior of the child instance on the stage.
Just to make myself clear, the child instance works just fine, without any problems as long as I do not use its class in any way in the document class.
My question: Do you have any idea what would make the child instance on the stage behave as if an error occurred even if there's no error or warning messages? Or a possible workaround?
Upvotes: 1
Views: 49
Reputation: 5978
Try not importing the class and getting it through (once the swf is loaded)
myLoader.contentLoaderInfo.applicationDomain.getDefinition("Child").STATIC_PROPERTY
I agree, it is not a very nice answer but a work-around. I'd be glad if someone found a real answer to this question.
Upvotes: 2