Exemplo n.º 1
0
        internal override void Dump(IndentedTextWriter w)
        {
            //w.Write("[" + SwfCompilationUnit.TagTypeString(tagType) + "]    " + len + "       FILEATTRIBUTES");
            string __dump = "FILEATTRIBUTES";

            if (this.UseDirectBlit)
            {
                __dump += " UseDirectBlit";
            }
            if (this.UseGPU)
            {
                __dump += " UseGPU";
            }
            if (this.HasMetadata)
            {
                __dump += " HasMetadata";
            }
            if (this.ActionScript3)
            {
                __dump += " as3";
            }
            if (this.SuppressCrossDomainCaching)
            {
                __dump += " SuppressCrossDomainCaching";
            }
            if (this.SwfRelativeUrls)
            {
                __dump += " SwfRelativeUrls";
            }
            __dump += (this.UseNetwork) ? " useNetwork" : " useLocal";
            w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 4, __dump));
        }
Exemplo n.º 2
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, TagLen, "SYMBOLCLASS"));
     foreach (KeyValuePair <string, uint> __symbol in Symbols)
     {
         w.WriteLine("                exports " + __symbol.Value.ToString("0000") + " as \"" + __symbol.Key + "\"");
     }
 }
Exemplo n.º 3
0
        internal override void Dump(IndentedTextWriter w)
        {
            string __dump;

            if (this.tagType == TagType.DoABC2)
            {
                __dump = "DOABC2 \"" + name + "\"" + (flag == ABCFLAG_LAZY ? ", lazy load" : "");
            }
            else
            {
                __dump = "DOABC";
            }
            w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, _data.Size, __dump));
        }
Exemplo n.º 4
0
 public SwfReader(string fileName)
 {
     if (File.Exists(fileName))
     {
         FullPath      = Path.GetFullPath(fileName);
         DirectoryName = Path.GetDirectoryName(FullPath);
         Directory.SetCurrentDirectory(DirectoryName);
         Name = Path.GetFileNameWithoutExtension(FullPath);
         SetBytes(File.ReadAllBytes(FullPath));
         CompilationUnit = new SwfCompilationUnit(this);
     }
     else
     {
         throw new FileLoadException("This swf file could not be found.");
     }
 }
Exemplo n.º 5
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, size, "METADATA {" + xml + "}"));
 }
Exemplo n.º 6
0
        internal override void Dump(IndentedTextWriter w)
        {
            string __dump = "SERIALNUMBER { Product: " + Product + ",Edition: " + Edition + ", Version: " + MajorVersion.ToString() + "." + MinorVersion.ToString() + ", Build : " + Build.ToString() + ", CompilationDate : " + CompilationDate.ToString() + " }";

            w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 26, __dump));
        }
Exemplo n.º 7
0
 internal SwfReader(byte[] rawSwf)
 {
     SetBytes(rawSwf);
     CompilationUnit = new SwfCompilationUnit(this);
 }
Exemplo n.º 8
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, size, "FRAMELABEL \"" + TargetName + "\""));
 }
Exemplo n.º 9
0
        internal override void Dump(IndentedTextWriter w)
        {
            string __dump = "DEFINEBITSLOSSLESS" + (tagType == TagType.DefineBitsLossless2 ? "2" : "") + " defines id " + CharacterId.ToString("0000") + " image " + this.Width + "x" + this.Height + " (32 bpp)";

            w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, TagLen, __dump));
        }
Exemplo n.º 10
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 0, "SHOWFRAME"));
     //SHOWFRAME 1 (00:00:00,000) (label "ItemDataPack")
 }
Exemplo n.º 11
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 0, "END"));
 }
Exemplo n.º 12
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, _data.Size, "DEFINEBINARY defines id " + id.ToString("0000")));
 }
Exemplo n.º 13
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 4, "SCRIPTLIMITS { ScriptRecursionLimit: " + ScriptRecursionLimit.ToString() + ", ScriptTimeLimit: " + ScriptTimeLimit.ToString() + " }"));
 }
Exemplo n.º 14
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 3, "SETBACKGROUNDCOLOR ( " + this.Color.R.ToString("X") + "/" + this.Color.G.ToString("X") + "/" + this.Color.B.ToString("X") + " )"));
 }