Reading the contents of a specific frame inside a movieclip using ByteArray

Is it possible to Read the contents of a specific frame (all the display objects in a frame) inside a movieclip using ByteArray?

not really, no. You could technically serialize a display list (in a bytearray) but only if in the current frame, not an arbitrary one.

Thanks a lot for your reply Senocular. That’s exactly what i want to do. So, i instruct the playhead to goto a frame and stop there. Now being in this current frame can i grab all the contents ( the display objects) and then add them to a sprite using bytearray. I really donot want to do this for an arbitrary frame. How to serialize a display list to a bytearray? Please tell me how to go about doing this.

So pls tell me if there is a way to serialize a display list of a currentframe of a movieclip to a bytearray?

Hi Senocular,

Can you pls tell me how to go about this.

ByteArray.writeObject is the API but depending on what you need it for, it might not do any good since I don’t think DisplayObjects are completely serialized. In fact you’d probably have to walk the display tree yourself to get each object in it.

Thanks a lot Senocular for your reply. I shall traverse the display list and access the display objects and serialize them in a bytearray.