Skip to content
This repository
  • 3 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
2  src/com/codeazur/as3swf/factories/SWFTagFactory.as
@@ -60,6 +60,7 @@
60 60
 				/*  69 */ case TagFileAttributes.TYPE: return createTagFileAttributes();
61 61
 				/*  70 */ case TagPlaceObject3.TYPE: return createTagPlaceObject3();
62 62
 				/*  71 */ case TagImportAssets2.TYPE: return createTagImportAssets2();
  63
+				/*  72 */ case TagDoABCDeprecated.TYPE: return createTagDoABCDeprecated();
63 64
 				/*  73 */ case TagDefineFontAlignZones.TYPE: return createTagDefineFontAlignZones();
64 65
 				/*  74 */ case TagCSMTextSettings.TYPE: return createTagCSMTextSettings();
65 66
 				/*  75 */ case TagDefineFont3.TYPE: return createTagDefineFont3();
@@ -141,6 +142,7 @@
141 142
 		protected function createTagMetadata():ITag { return new TagMetadata(); }
142 143
 		protected function createTagDefineScalingGrid():ITag { return new TagDefineScalingGrid(); }
143 144
 		protected function createTagDoABC():ITag { return new TagDoABC(); }
  145
+		protected function createTagDoABCDeprecated():ITag { return new TagDoABCDeprecated(); }
144 146
 		protected function createTagDefineShape4():ITag { return new TagDefineShape4(); }
145 147
 		protected function createTagDefineMorphShape2():ITag { return new TagDefineMorphShape2(); }
146 148
 		protected function createTagDefineSceneAndFrameLabelData():ITag { return new TagDefineSceneAndFrameLabelData(); }
51  src/com/codeazur/as3swf/tags/TagDoABCDeprecated.as
... ...
@@ -0,0 +1,51 @@
  1
+package com.codeazur.as3swf.tags
  2
+{
  3
+	import com.codeazur.as3swf.SWFData;
  4
+
  5
+	import flash.utils.ByteArray;
  6
+	
  7
+	public class TagDoABCDeprecated implements ITag
  8
+	{
  9
+		public static const TYPE:uint = 72;
  10
+
  11
+		protected var _bytes:ByteArray;
  12
+
  13
+		public function TagDoABCDeprecated() {
  14
+			_bytes = new ByteArray();
  15
+		}
  16
+
  17
+		public static function create(abcData:ByteArray = null):TagDoABCDeprecated {
  18
+			var doABC:TagDoABCDeprecated = new TagDoABCDeprecated();
  19
+			if (abcData != null && abcData.length > 0) {
  20
+				doABC.bytes.writeBytes(abcData);
  21
+			}
  22
+			return doABC;
  23
+		}
  24
+
  25
+		public function get bytes():ByteArray { return _bytes; }
  26
+
  27
+		public function parse(data:SWFData, length:uint, version:uint, async:Boolean = false):void {
  28
+			var pos:uint = data.position;
  29
+			data.readBytes(bytes, 0, length - (data.position - pos));
  30
+		}
  31
+
  32
+		public function publish(data:SWFData, version:uint):void {
  33
+			var body:SWFData = new SWFData();
  34
+			if (_bytes.length > 0) {
  35
+				body.writeBytes(_bytes);
  36
+			}
  37
+			data.writeTagHeader(type, body.length);
  38
+			data.writeBytes(body);
  39
+		}
  40
+
  41
+		public function get type():uint { return TYPE; }
  42
+		public function get name():String { return "DoABC"; }
  43
+		public function get version():uint { return 9; }
  44
+		public function get level():uint { return 1; }
  45
+
  46
+		public function toString(indent:uint = 0):String {
  47
+			return Tag.toStringCommon(type, name, indent) +
  48
+				"Length: " + _bytes.length;
  49
+		}
  50
+	}
  51
+}

No commit comments for this range

Something went wrong with that request. Please try again.