# Help using bytearray

**URL:** <https://forum.kirupa.com/t/help-using-bytearray/309925>\
**Category:** flash\
**Created:** [May 27, 2010, 6:57pm UTC](https://forum.kirupa.com/t/help-using-bytearray/309925 "2010-05-27T18:57:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jik\_ff](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jik\_ff](https://forum.kirupa.com/u/jik_ff)\
**Post date:** [May 27, 2010, 6:57pm UTC](https://forum.kirupa.com/t/help-using-bytearray/309925/1 "2010-05-27T18:57:21Z")

</div>

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.
