[swfmill] UnknownTag

Nabil Madrane nmadrane at mn-rlab.com
Sun Aug 20 13:08:29 EDT 2006


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20060820/8470af94/attachment.htm


More information about the swfmill mailing list