ActionScript 3 AS3 SWFtrospection(as3swf)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 AS3 SWFtrospection(as3swf)相关的知识,希望对你有一定的参考价值。

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

以上是关于ActionScript 3 AS3 SWFtrospection(as3swf)的主要内容,如果未能解决你的问题,请参考以下文章

[ActionScript 3.0] AS3.0 水面波纹效果

ActionScript 3 AS3:使用SWFObject2和AS3传递变量

ActionScript 3 克隆数组(AS3)

ActionScript 3 AS3序列化

ActionScript 3 As3初始上限

ActionScript 3 AS3 HTML清理