To swap one clip for another, you just want to attach a new
clip at the same
depth as the old clip.
Here's a function that will swap a clip with one from the
library - the
instance name, and clip position stay the same.
var d = originalClip.getDepth();
this.attachMovie(newClipLinkage, originalClip._name, d,
If clipB has a linkage name of "libraryClip_B" then you'd
swap a and b with: