Try this
// parse SWF file function parseSWF(data:ByteArray) { parseLog = ""; data.endian = Endian.LITTLE_ENDIAN; var format:String = data.readUTFBytes(3); var compressed:Boolean = format=="CWS"; if (format=="FWS" || format=="CWS") { parseLog += "SWF version "+data.readByte(); parseLog += ", size: "+data.readUnsignedInt(); } else { parseLog += "Not a Flash file."; return; } data.readBytes(data); data.length -= 8; if (compressed) { data.uncompress(); } data.position = 0; var frame:Array = readBox(data); parseLog += "\n"; parseLog += "Width: "+Math.round((frame[1]-frame[0])/20); parseLog += ", height: "+Math.round((frame[3]-frame[2])/20); var fps_f:uint = data.readUnsignedByte(); var fps_i:uint = data.readUnsignedByte(); parseLog += "\n"; parseLog += "FPS: "+(fps_i+fps_f/256); var count:uint = data.readUnsignedShort(); parseLog += "\n"; parseLog += "Total frames: "+count; parseLog += "\n"; while (data.bytesAvailable) { readSWFTag(data); } trace(parseLog); } courtesy of Denis V. Chumakov http://flashpanoramas.com/blog/ --- In flexcoders@yahoogroups.com, "J" <[EMAIL PROTECTED]> wrote: > > Not directly related to Flex, but this one of the few places to to get > expert advice. > > I am building an application to QA Flash 6/7/8 files. I am using Flex > on the client side with PHP running on Linux. Does anyone have any > knowledge they can share on decompiling SWF files to extract > actionscript server-side? I'd like to add a feature that returns the > actionscript along with the ksize/dimensions/framerate data I already > have in place. > > Thanks! >