KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > iv > flash > util > Tag


1 /*
2  * $Id: Tag.java,v 1.4 2002/05/30 05:04:56 skavish Exp $
3  *
4  * ===========================================================================
5  *
6  * The JGenerator Software License, Version 1.0
7  *
8  * Copyright (c) 2000 Dmitry Skavish (skavish@usa.net). All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions are met:
12  *
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  *
16  * 2. Redistributions in binary form must reproduce the above copyright
17  * notice, this list of conditions and the following disclaimer in
18  * the documentation and/or other materials provided with the
19  * distribution.
20  *
21  * 3. The end-user documentation included with the redistribution, if
22  * any, must include the following acknowlegement:
23  * "This product includes software developed by Dmitry Skavish
24  * (skavish@usa.net, http://www.flashgap.com/)."
25  * Alternately, this acknowlegement may appear in the software itself,
26  * if and wherever such third-party acknowlegements normally appear.
27  *
28  * 4. The name "The JGenerator" must not be used to endorse or promote
29  * products derived from this software without prior written permission.
30  * For written permission, please contact skavish@usa.net.
31  *
32  * 5. Products derived from this software may not be called "The JGenerator"
33  * nor may "The JGenerator" appear in their names without prior written
34  * permission of Dmitry Skavish.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL DMITRY SKAVISH OR THE OTHER
40  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  *
49  */

50
51 package org.openlaszlo.iv.flash.util;
52
53 import org.openlaszlo.iv.flash.api.*;
54 import org.openlaszlo.iv.flash.parser.FixedTag;
55
56 /**
57  * Enumeration of flash file format tags.
58  *
59  * @author Dmitry Skavish
60  */

61 public final class Tag {
62
63     public static final int END = 0;
64     public static final int SHOWFRAME = 1;
65     public static final int DEFINESHAPE = 2;
66     public static final int FREECHARACTER = 3;
67     public static final int PLACEOBJECT = 4;
68     public static final int REMOVEOBJECT = 5;
69     public static final int DEFINEBITS = 6;
70     public static final int DEFINEBUTTON = 7;
71     public static final int JPEGTABLES = 8;
72     public static final int SETBKGCOLOR = 9;
73     public static final int DEFINEFONT = 10;
74     public static final int DEFINETEXT = 11;
75     public static final int DOACTION = 12;
76     public static final int DEFINEFONTINFO = 13;
77     public static final int DEFINESOUND = 14;
78     public static final int STARTSOUND = 15;
79     //public static final int = 16;
80
public static final int DEFINEBUTTONSOUND = 17;
81     public static final int SOUNDSTREAMHEAD = 18;
82     public static final int SOUNDSTREAMBLOCK = 19;
83     public static final int DEFINEBITSLOSSLESS = 20;
84     public static final int DEFINEBITSJPEG2 = 21;
85     public static final int DEFINESHAPE2 = 22;
86     public static final int DEFINEBUTTONCXFORM = 23;
87     public static final int PROTECT = 24;
88     public static final int PATHSAREPOSTSCRIPT = 25;
89     public static final int PLACEOBJECT2 = 26;
90     //public static final int = 27;
91
public static final int REMOVEOBJECT2 = 28;
92     //public static final int = 29;
93
//public static final int = 30;
94
//public static final int = 31;
95
public static final int DEFINESHAPE3 = 32;
96     public static final int DEFINETEXT2 = 33;
97     public static final int DEFINEBUTTON2 = 34;
98     public static final int DEFINEBITSJPEG3 = 35;
99     public static final int DEFINEBITSLOSSLESS2 = 36;
100     public static final int DEFINEEDITTEXT = 37;
101     public static final int DEFINEMOVIE = 38;
102     public static final int DEFINESPRITE = 39;
103     public static final int NAMECHARACTER = 40;
104     public static final int SERIALNUMBER = 41;
105     public static final int GENERATORTEXT = 42;
106     public static final int FRAMELABEL = 43;
107     //public static final int = 44;
108
public static final int SOUNDSTREAMHEAD2 = 45;
109     public static final int DEFINEMORPHSHAPE = 46;
110     //public static final int = 47;
111
public static final int DEFINEFONT2 = 48;
112     public static final int TEMPLATECOMMAND = 49;
113     //public static final int = 50;
114
public static final int FLASHGENERATOR = 51;
115     public static final int EXTERNALFONT = 52;
116     //public static final int = 53;
117
//public static final int = 54;
118
//public static final int = 55;
119
public static final int EXPORTASSETS = 56; // Flash 5
120
public static final int IMPORTASSETS = 57; // Flash 5
121
public static final int ENABLEDEBUGGER = 58; // Flash 5
122
public static final int INITCLIPACTION = 59; // Flash 6
123
//public static final int = 60;
124
//public static final int = 61;
125
public static final int DEFINEFONTINFO2 = 62; // Flash 6
126

127     public static final String JavaDoc[] tagNames = {
128         "End",
129         "ShowFrame",
130         "DefineShape",
131         "FreeCharacter",
132         "PlaceObject",
133         "RemoveObject",
134         "DefineBits",
135         "DefineButton",
136         "JPEGTables",
137         "SetBackgroundColor",
138         "DefineFont",
139         "DefineText",
140         "DoAction",
141         "DefineFontInfo",
142         "DefineSound",
143         "StartSound",
144         "Unknown",
145         "DefineButtonSound",
146         "SoundStreamHead",
147         "SoundStreamBlock",
148         "DefineBitsLossLess",
149         "DefineBitsJPEG",
150         "DefineShape2",
151         "DefineButtonCXForm",
152         "Protect",
153         "PathsArePostscript",
154         "PlaceObject2",
155         "Unknown",
156         "RemoveObject2",
157         "Unknown",
158         "Unknown",
159         "Unknown",
160         "DefineShape3",
161         "DefineText2",
162         "DefineButton2",
163         "DefineBitsJPEG3",
164         "DefineBitsLossLess2",
165         "DefineEditText",
166         "DefineMovie",
167         "DefineSprite",
168         "NameCharacter",
169         "SerialNumber",
170         "GeneratorText",
171         "FrameLabel",
172         "Unknown",
173         "SoundStreamHead2",
174         "DefineMorphShape",
175         "Unknown",
176         "DefineFont2",
177         "TemplateCommand",
178         "Unknown",
179         "FlashGenerator",
180         "ExternalFont",
181         "Unknown",
182         "Unknown",
183         "Unknown",
184         "ExportAssets",
185         "ImportAssets",
186         "EnableDebugger",
187         "InitClipAction",
188         "Unknown",
189         "Unknown",
190         "DefineFontInfo2",
191     };
192
193     public static final FlashObject END_TAG = new FixedTag( END );
194     public static final FlashObject SHOWFRAME_TAG = new FixedTag( SHOWFRAME );
195
196 }
197
Popular Tags