Help using bytearray

I’ve been putting together a little app for team scheduling (more to work at my Flash skills than anything else), and I am trying to work on the file saving/loading aspect. I have been trying to use bytearray, but I may not be doing things right.

First off I have several custom class MCs that are storing the data I need. what I tried to do was to put these objects into an array, and then put that array into a bytearray (writeObject). Then, when I load the file, I pull out the data (readObject) into an array, then I take the cells of that array and put them back into the correct variables.

Is this the wrong way to do this? I am really new to the file saving aspects of flash…

thanks.