I got it.
It’s asyncronous, but I got it. Still, that’s better than the dangerous recursive versions.
Had an idea about how to clone an object in Flash MX as there was one Class that I remember actually copied an object: LocalConnection. I figured this out almost a year ago when we all tried to pass a connected NetConnection object to other Flash movie’s hoping they could share it (since NetConnection’s don’t come cheap in Flashcom). Ultimately, it was a failure because, just like SharedObject’s, when you save a class to it, it strips it of any known linkage to its derived class (unless you use Branden Hall’s trick [don’t have link handy]).
Anyway, read on for the code…