|
Yes, you can do this. In the demo, take a look at the "PlatformSwing" symbol in the "SpecialStuff" folder. It's got two distance joints that both have "target2Name" set to "anc" (another joint in that symbol). The "BoxMan" demo uses this platform swing several times. When a joint is built, it looks at it's parent for the symbol named by "target2Name". In most cases, the parent is the World, however the joints in the "PlatformSwing" have that symbol as their parent, not the world, so their is no naming conflict (using "anc" multiple times).
Now lets say you want the joint - within a symbol so it's parent is not the world - reference a joint inside the world (two parents up). Just prefix "target2Name" with a "/". Then it'll use the world as the "root" and look for the symbol there.
You can even set "target2Name" to crazy things like "/someSymbol/otherSymbol/myFarAwayJoint" to traverse the display hierarchy.
So you'll have a see-saw symbol (extends MovieClip, not BodyShape), then in there have your bodies and shapes.
|