Hi,

 

I am studying the XML file that is generated by swfmill (by using the swf2xml command). In particular I am interested in the following XML fragment :

 

<UnknownTag id="0x4F">

        <data>AwAAAKAAeACGoQUAAAAAGGZ0eXAzZ3A1AAABADNncDUzZ3A0AAAgMG1vb…….</data>

</UnknownTag>

<Export>

   <symbols>

        <Symbol objectID="1" name="MYSYMBOL"/>

   </symbols>

</Export>

 

This fragment corresponds to a video file that I have previously inserted in the SWF by using Macromedia Flash.

Flashmill converts it as an UnknownTag.

 

Now let’s take the string beginning at “AAAAGGZ0eXAzZ3A1AAABADNncDUzZ3A0AAAgMG1vb…….”, i.e. by skipping the first 16 characters of the data.

If I decode it (base64) I get the exact original video file that I have inserted in the SWF. That’s good.

 

However I don’t understand the meaning of the 16 first characters of the <data> tag. It seems to be a header. 16 characters would give 12 bytes of binary data after base64-decoding. I had a look at the CUnknownTag class in the source code but couldn’t find where and how this header is actually generated.

 

The reason why I am doing this is because I want to create some kind of batch application that will take a SWF file, convert it as XML with swfmill, this XML file, en then parse to dynamically replace the <data> tag. After this, I would run the xml2swf command to get a new SWF. That would be an easy way to replace an embed video file.

 

Nabil Madrane.

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to