View Full Version : User defined base class linked with 2 symbols gives Error #1034: Type Coercion failed
cauchy
January 8th, 2008, 01:21 AM
Hi, I have two movie clips in the library linked to the same base class, Container, with different class names defined in Properties. These clips each contain (nest) several other clips that are also linked to another base class, Contained. Is there something else that needs to be done to deal with nested clips like this? I'm not certain that nesting is an issue, but in a scenario with different symbols I could not replicate the problem. I've attached a simplified version of the problem .fla with the 2 .as files. I'm using the latest version of CS3. The error is: TypeError: Error #1034: Type Coercion failed: cannot convert Contained_AnteriorLeft@1c4ba431 to Contained_PosteriorLeft.
cauchy
January 8th, 2008, 06:22 PM
Finally, I figured out that in a nested symbol, the inner movie clips cannot have the same instance names across different outer symbols. So if there are two nested symbols, left_mc and right_mc, these cannot both contain inner instances with the same names, like inner_mc, that exists in both left_mc and right_mc. Changing the inner instances to something like right_inner_mc and left_inner_mc fixes the problem. This seems to be a problem when the outer symbols are linked to the same user-defined base class. I hope this will be of help to someone else who encounters the same issue.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.