views:

40

answers:

0

I would like to make my local jpg and mp3 files kind of unreadable (without encoding) by just putting the first 100 bytes from the beginning of the file to the end and then saving the file with a .dat extension. I know I have to use the byte array but can't get it work.

I would also need then a small function to read that file and put the 100bytes back to the front so that I can play/display the file.

It would be great if you could post the whole function because I am quite new to Air so that I fully understand.

Thank You!!!!