1 goog.provide('FlappSWFTag');
2 goog.require('FlappSWFTagShowFrame');
3 goog.require('FlappSWFTagDefineShape');
4 goog.require('FlappSWFTagDefineBitsJPEG');
5 goog.require('FlappSWFTagJPEGTables');
6 goog.require('FlappSWFTagSetBackgroundColor');
7 goog.require('FlappSWFTagDoAction');
8 goog.require('FlappSWFTagPlaceObject');
10 goog.scope(function() {
15 FlappSWFTag = function() {
20 FlappSWFTag.load = function(code, length, ibit) {
21 // console.log("FlappSWFTag.load(code:"+code+", length:"+length+", ibit)");
25 tag = new FlappSWFTagShowFrame(code, length, ibit);
27 case 2: // DefineShape
28 case 22: // DefineShape2
29 case 32: // DefineShape3
30 tag = new FlappSWFTagDefineShape(code, length, ibit);
32 case 6: // DefineBits(JPEG)
33 tag = new FlappSWFTagDefineBitsJPEG(code, length, ibit);
36 tag = new FlappSWFTagJPEGTables(code, length, ibit);
38 case 9: // SetBackgroundColor
39 tag = new FlappSWFTagSetBackgroundColor(code, length, ibit);
42 tag = new FlappSWFTagDoAction(code, length, ibit);
44 case 26: // PlaceObject2
45 tag = new FlappSWFTagPlaceObject(code, length, ibit);
48 // console.debug(tag);