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