#define GetULongLE(data) ((unsigned long) GV4B(data[3], data[2], data[1], data[0]))
#define GetDoubleIEEE(data) ((double) GV8B(data[4], data[5], data[6], data[7], data[0], data[1], data[2], data[3]))
-#define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 16)))
+#define PutUShortLE(data, value) ((data[0] = (value & 0xff)), (data[1] = (value >> 8)))
// tag
--- /dev/null
+--TEST--
+replaceMovieClip 300 defineshape & placeobject
+--FILE--
+<?php
+
+$swf_filename = 'tests/negimiku.swf';
+$swf_filename2 = 'tests/4color-300.swf';
+
+$swfdata = file_get_contents($swf_filename);
+$swfdata2 = file_get_contents($swf_filename2);
+$obj = new SWFEditor();
+
+$obj->input($swfdata);
+
+$obj->replaceMovieClip('miku', $swfdata2);
+echo md5($obj->output())."\n";
+?>
+===DONE===
+--EXPECTF--
+72a21c2e2100a7f14fc9785341636541
+===DONE===