Example #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));
        }
Example #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 + "\"");
     }
 }
Example #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));
        }
Example #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.");
     }
 }
Example #5
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, size, "METADATA {" + xml + "}"));
 }
Example #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));
        }
Example #7
0
 internal SwfReader(byte[] rawSwf)
 {
     SetBytes(rawSwf);
     CompilationUnit = new SwfCompilationUnit(this);
 }
Example #8
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, size, "FRAMELABEL \"" + TargetName + "\""));
 }
Example #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));
        }
Example #10
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 0, "SHOWFRAME"));
     //SHOWFRAME 1 (00:00:00,000) (label "ItemDataPack")
 }
Example #11
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 0, "END"));
 }
Example #12
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, _data.Size, "DEFINEBINARY defines id " + id.ToString("0000")));
 }
Example #13
0
 internal override void Dump(IndentedTextWriter w)
 {
     w.WriteLine(SwfCompilationUnit.DumpWrite(tagType, 4, "SCRIPTLIMITS { ScriptRecursionLimit: " + ScriptRecursionLimit.ToString() + ", ScriptTimeLimit: " + ScriptTimeLimit.ToString() + " }"));
 }
Example #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") + " )"));
 }