Return to Snippet

Revision: 25936
at April 14, 2010 09:31 by adrianparr


Initial Code
import com.codeazur.as3swf.SWF;
var swf:SWF = new SWF(root.loaderInfo.bytes);
trace(swf);

// OUTPUT ...
//[SWF]
//  Header:
//    Version: 10
//    FileLength: 166284
//    FileLengthCompressed: 166284
//    FrameSize: (550,400)
//    FrameRate: 30
//    FrameCount: 1
//  Tags:
//    [69:FileAttributes] AS3: true, HasMetadata: true, UseDirectBlit: false, UseGPU: false, UseNetwork: false
//    [77:Metadata]  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
//  <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/">
//    <xmp:CreatorTool>Adobe Flash CS4 Professional</xmp:CreatorTool>
//    <xmp:CreateDate>2010-04-13T10:23:09+01:00</xmp:CreateDate>
//    <xmp:MetadataDate>2010-04-14T15:29:08+01:00</xmp:MetadataDate>
//    <xmp:ModifyDate>2010-04-14T15:29:08+01:00</xmp:ModifyDate>
//  </rdf:Description>
//  <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
//    <dc:format>application/x-shockwave-flash</dc:format>
//  </rdf:Description>
//  <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#">
//    <xmpMM:DerivedFrom rdf:parseType="Resource">
//      <stRef:instanceID>xmp.iid:7C944C36DE46DF11A42FA6A489EBD966</stRef:instanceID>
//      <stRef:documentID>xmp.did:7C944C36DE46DF11A42FA6A489EBD966</stRef:documentID>
//      <stRef:originalDocumentID>xmp.did:7C944C36DE46DF11A42FA6A489EBD966</stRef:originalDocumentID>
//    </xmpMM:DerivedFrom>
//    <xmpMM:DocumentID>xmp.did:15201428D147DF119956F0DDDFBC1A28</xmpMM:DocumentID>
//    <xmpMM:InstanceID>xmp.iid:15201428D147DF119956F0DDDFBC1A28</xmpMM:InstanceID>
//    <xmpMM:OriginalDocumentID>xmp.did:7C944C36DE46DF11A42FA6A489EBD966</xmpMM:OriginalDocumentID>
//  </rdf:Description>
//</rdf:RDF>
//    [09:SetBackgroundColor] Color: #FFFFFF
//    [86:DefineSceneAndFrameLabelData] 
//      Scenes:
//        [0] Frame: 0, Name: Scene 1
//    [82:DoABC] Lazy: true, Length: 164888
//    [76:SymbolClass] 
//      Symbols:
//        [0] TagID: 0, Name: SWFtrospection_fla.MainTimeline
//    [01:ShowFrame] 
//    [00:End] 
//  Frames:
//    [0] Start: 0, Length: 7

Initial URL
http://wahlers.com.br/claus/blog/swftrospection/

Initial Description
You need to download the SWC from here (http://github.com/claus/as3swf/archives/master) first.

Initial Title
AS3 SWFtrospection (as3swf)

Initial Tags
data

Initial Language
ActionScript 3