In our app, we create complex nested movieclip with code. Essentially, we use lots of loadbytes and addchild to create these complex movieclips. Sometimes, we need to duplicate one of these complex movieclip hundreds of times to create hundreds of instances of it.
Currently, we perform the “duplication” by re-creating the complex movieclips from scratch with loadbytes and such. However, this is proving to be very slow.
What would be a quicker way to “duplicate” or “clone” a complex movieclip?
Is there a way to serialize a complex mc into a bytearray and the resurrect it as a new object with a single loadbytes?
Thanks.