Hi,

 

I'm trying to get AS3 to parse an IFF file, more specifically the EA IFF
85 file format, using the byteArray.

For now the best documentation I've found is this link
http://www.martinreddy.net/gfx/2d/IFF.txt and a C script called
IFFDigest.

 

Now since I've never done anything in C, there are some sections in the
code which aren't exactly clear, for example :

 

/* ID typedef and builder for 68000 Lattice C. */
typedef LONG ID;       /* 4 chars in ' ' through '~'  */
#define MakeID(a,b,c,d) ( (a)<<<<24 | (b)<<<<16 | (c)<<<<8 | (d) )
 
/* Globally reserved IDs. */
#define ID_FORM   MakeID('F','O','R','M')
#define ID_LIST   MakeID('L','I','S','T')
#define ID_PROP   MakeID('P','R','O','P')
#define ID_CAT    MakeID('C','A','T',' ')
#define ID_FILLER MakeID(' ',' ',' ',' ')

 

 

>>> What is should do is take the string 'FORM' and convert it to an ID,
how would this translate to AS3?

 

Should anyone know where to find more useful info on this, please let me
know :-)

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to