📄 swftagtypes.html
字号:
int sampleCount,
byte[] soundData)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>format</CODE> - one of the SWFConstants.SOUND_FORMAT_* constants<DD><CODE>frequency</CODE> - one of the SWFConstants.SOUND_FREQ_* constants<DD><CODE>soundData</CODE> - format-dependent sound data
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineButtonSound(int, int, com.anotherbigidea.flash.structs.SoundInfo, int, com.anotherbigidea.flash.structs.SoundInfo, int, com.anotherbigidea.flash.structs.SoundInfo, int, com.anotherbigidea.flash.structs.SoundInfo)"><!-- --></A><H3>
tagDefineButtonSound</H3>
<PRE>
void <B>tagDefineButtonSound</B>(int buttonId,
int rollOverSoundId,
<A HREF="../../../../com/anotherbigidea/flash/structs/SoundInfo.html" title="class in com.anotherbigidea.flash.structs">SoundInfo</A> rollOverSoundInfo,
int rollOutSoundId,
<A HREF="../../../../com/anotherbigidea/flash/structs/SoundInfo.html" title="class in com.anotherbigidea.flash.structs">SoundInfo</A> rollOutSoundInfo,
int pressSoundId,
<A HREF="../../../../com/anotherbigidea/flash/structs/SoundInfo.html" title="class in com.anotherbigidea.flash.structs">SoundInfo</A> pressSoundInfo,
int releaseSoundId,
<A HREF="../../../../com/anotherbigidea/flash/structs/SoundInfo.html" title="class in com.anotherbigidea.flash.structs">SoundInfo</A> releaseSoundInfo)
throws java.io.IOException</PRE>
<DL>
<DD>Define the sound for a button
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineShape(int, com.anotherbigidea.flash.structs.Rect)"><!-- --></A><H3>
tagDefineShape</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFShape.html" title="interface in com.anotherbigidea.flash.interfaces">SWFShape</A> <B>tagDefineShape</B>(int id,
<A HREF="../../../../com/anotherbigidea/flash/structs/Rect.html" title="class in com.anotherbigidea.flash.structs">Rect</A> outline)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>SWFShape to receive shape info - or null to skip the data
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineShape2(int, com.anotherbigidea.flash.structs.Rect)"><!-- --></A><H3>
tagDefineShape2</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFShape.html" title="interface in com.anotherbigidea.flash.interfaces">SWFShape</A> <B>tagDefineShape2</B>(int id,
<A HREF="../../../../com/anotherbigidea/flash/structs/Rect.html" title="class in com.anotherbigidea.flash.structs">Rect</A> outline)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>SWFShape to receive shape info - or null to skip the data
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineShape3(int, com.anotherbigidea.flash.structs.Rect)"><!-- --></A><H3>
tagDefineShape3</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFShape.html" title="interface in com.anotherbigidea.flash.interfaces">SWFShape</A> <B>tagDefineShape3</B>(int id,
<A HREF="../../../../com/anotherbigidea/flash/structs/Rect.html" title="class in com.anotherbigidea.flash.structs">Rect</A> outline)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>SWFShape to receive shape info - or null to skip the data
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineButton(int, java.util.Vector)"><!-- --></A><H3>
tagDefineButton</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFActions.html" title="interface in com.anotherbigidea.flash.interfaces">SWFActions</A> <B>tagDefineButton</B>(int id,
java.util.Vector buttonRecords)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buttonRecords</CODE> - contains ButtonRecord objects
<DT><B>Returns:</B><DD>SWFActions object (may be null) to receive button actions - there is only one action array (with no conditions).
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../com/anotherbigidea/flash/structs/ButtonRecord.html" title="class in com.anotherbigidea.flash.structs"><CODE>ButtonRecord</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="tagButtonCXForm(int, com.anotherbigidea.flash.structs.ColorTransform)"><!-- --></A><H3>
tagButtonCXForm</H3>
<PRE>
void <B>tagButtonCXForm</B>(int buttonId,
<A HREF="../../../../com/anotherbigidea/flash/structs/ColorTransform.html" title="class in com.anotherbigidea.flash.structs">ColorTransform</A> transform)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineButton2(int, boolean, java.util.Vector)"><!-- --></A><H3>
tagDefineButton2</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFActions.html" title="interface in com.anotherbigidea.flash.interfaces">SWFActions</A> <B>tagDefineButton2</B>(int id,
boolean trackAsMenu,
java.util.Vector buttonRecord2s)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>buttonRecord2s</CODE> - contains ButtonRecord2 objects
<DT><B>Returns:</B><DD>SWFActions object (may be null) to receive button actions - there may be multiple action arrays - each one is conditional, using the BUTTON2_* condition flags defined in SWFConstants.java
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../../com/anotherbigidea/flash/structs/ButtonRecord2.html" title="class in com.anotherbigidea.flash.structs"><CODE>ButtonRecord2</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="tagSetBackgroundColor(com.anotherbigidea.flash.structs.Color)"><!-- --></A><H3>
tagSetBackgroundColor</H3>
<PRE>
void <B>tagSetBackgroundColor</B>(<A HREF="../../../../com/anotherbigidea/flash/structs/Color.html" title="class in com.anotherbigidea.flash.structs">Color</A> color)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineVideoStream(int, int, int, int, int, int)"><!-- --></A><H3>
tagDefineVideoStream</H3>
<PRE>
void <B>tagDefineVideoStream</B>(int id,
int numFrames,
int width,
int height,
int flags,
int codec)
throws java.io.IOException</PRE>
<DL>
<DD>Defines a video-stream symbol.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - symbol id<DD><CODE>numFrames</CODE> - number of VideoFrame tags in the stream<DD><CODE>width</CODE> - in pixels<DD><CODE>height</CODE> - in pixels<DD><CODE>flags</CODE> - see SWFConstants VIDEO_STREAM_* constants<DD><CODE>codec</CODE> - see SWFConstants VIDEO_CODEC_* constants
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagVideoFrame(int, int, int, int, byte[])"><!-- --></A><H3>
tagVideoFrame</H3>
<PRE>
void <B>tagVideoFrame</B>(int streamId,
int seqNum,
int frameType,
int codec,
byte[] videoPacket)
throws java.io.IOException</PRE>
<DL>
<DD>A video frame.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>streamId</CODE> - the id of the tagDefineVideoStream this frame belongs to<DD><CODE>seqNum</CODE> - sequence number - starting at zero, increment by 1<DD><CODE>frameType</CODE> - whether key-frame or inter-frame - see SWFConstants VIDEO_FRAME_*<DD><CODE>codec</CODE> - the codec - see SWFConstants VIDEO_CODEC_* constants<DD><CODE>videoPacket</CODE> - video packet data
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineFont(int, int)"><!-- --></A><H3>
tagDefineFont</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFVectors.html" title="interface in com.anotherbigidea.flash.interfaces">SWFVectors</A> <B>tagDefineFont</B>(int id,
int numGlyphs)
throws java.io.IOException</PRE>
<DL>
<DD>The SWFVectors object returned will be called numGlyphs times to pass the vector information for each glyph (each glyph is terminated by calling SWFVectors.done() )
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineText(int, com.anotherbigidea.flash.structs.Rect, com.anotherbigidea.flash.structs.Matrix)"><!-- --></A><H3>
tagDefineText</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFText.html" title="interface in com.anotherbigidea.flash.interfaces">SWFText</A> <B>tagDefineText</B>(int id,
<A HREF="../../../../com/anotherbigidea/flash/structs/Rect.html" title="class in com.anotherbigidea.flash.structs">Rect</A> bounds,
<A HREF="../../../../com/anotherbigidea/flash/structs/Matrix.html" title="class in com.anotherbigidea.flash.structs">Matrix</A> matrix)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>SWFText object to receive the text style and glyph information - this may be null if the info is not required
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="tagDefineText2(int, com.anotherbigidea.flash.structs.Rect, com.anotherbigidea.flash.structs.Matrix)"><!-- --></A><H3>
tagDefineText2</H3>
<PRE>
<A HREF="../../../../com/anotherbigidea/flash/interfaces/SWFText.html" title="interface in com.anotherbigidea.flash.interfaces">SWFText</A> <B>tagDefineText2</B>(int id,
<A HREF="../../../../com/anotherbigidea/flash/structs/Rect.html" title="class in com.anotherbigidea.flash.structs">Rect</A> bounds,
<A HREF="../../../../com/anotherbigidea/flash/structs/Matrix.html" title="class in com.anotherbigidea.flash.structs">Matrix</A> matrix)
throws java.io.IOException</PRE>
<DL>
<DD>Allows alpha colors
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>SWFText object to receive the text style and glyph information - this may be null if the info is not required
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -