主题:  PHP中生成flash的新函数

semon

职务:普通成员
等级:3
金币:1.0
发贴:896
注册:2000/9/15 13:43:14
#12000/12/29 17:13:37
刚才更新了php的帮助文件,竟然发现里面有shockwave函数(需要安装额外的lib,从http://reality.sgi.com/grafica/flash/ 下载),里面有67个函数,可以允许在线制作swf文件(是制作,不是象generator的生成,酷~~~~~),现在下班了,回家后整理一下,把结果发给大家.



semon

职务:普通成员
等级:3
金币:1.0
发贴:896
注册:2000/9/15 13:43:14
#22000/12/29 17:15:29
新函数列表:
swf_openfile — 打开一个新的Shockwave Flash文件
swf_closefile — 关闭当前的Shockwave Flash文件
swf_labelframe — 标注当前帧
swf_showframe — 显示当前帧
swf_setframe — 切换到特定帧
swf_getframe — 取得当前帧的帧数
swf_mulcolor — 设置全局RGB色
swf_addcolor — Set the global add color to the rgba value specified
swf_placeobject — 在屏幕上放置一个对象
swf_modifyobject — 调整一个对象
swf_removeobject — 去除一个对象
swf_nextid — Returns the next free object id
swf_startdoaction — Start a description of an action list for the current frame
swf_actiongotoframe — 播放一帧然后停止
swf_actiongeturl — Get a URL from a Shockwave Flash movie
swf_actionnextframe — 向前一帧
swf_actionprevframe — 后退一帧
swf_actionplay — 从当前帧开始播放flash movie
swf_actionstop — 在当前帧停止播放flash movie
swf_actiontogglequality — 切换质量
swf_actionwaitforframe — 如果某帧没有被下载则跳过该帧
swf_actionsettarget — Set the context for actions
swf_actiongotolabel — Display a frame with the specified label
swf_enddoaction — End the current action
swf_defineline — Define a line
swf_definerect — Define a rectangle
swf_definepoly — Define a polygon
swf_startshape — Start a complex shape
swf_shapelinesolid — Set the current line style
swf_shapefilloff — Turns off filling
swf_shapefillsolid — Set the current fill style to the specified color
swf_shapefillbitmapclip — Set current fill mode to clipped bitmap
swf_shapefillbitmaptile — Set current fill mode to tiled bitmap
swf_shapemoveto — Move the current position
swf_shapelineto — Draw a line
swf_shapecurveto — Draw a quadratic bezier curve between two points
swf_shapecurveto3 — Draw a cubic bezier curve
swf_shapearc — Draw a circular arc
swf_endshape — Completes the definition of the current shape
swf_definefont — Defines a font
swf_setfont — Change the current font
swf_fontsize — Change the font size
swf_fontslant — Set the font slant
swf_fonttracking — Set the current font tracking
swf_getfontinfo — The height in pixels of a capital A and a lowercase x
swf_definetext — Define a text string
swf_textwidth — Get the width of a string
swf_definebitmap — Define a bitmap
swf_getbitmapinfo — Get information about a bitmap
swf_startsymbol — Define a symbol
swf_endsymbol — End the definition of a symbol
swf_startbutton — Start the definition of a button
swf_addbuttonrecord — Controls location, appearance and active area of the current button
swf_oncondition — Describe a transition used to trigger an action list
swf_endbutton — End the definition of the current button
swf_viewport — Select an area for future drawing
swf_ortho — Defines an orthographic mapping of user coordinates onto the current viewport
swf_ortho2 — Defines 2D orthographic mapping of user coordinates onto the current viewport
swf_perspective — Define a perspective projection transformation
swf_polarview — Define the viewer's position with polar coordinates
swf_lookat — Define a viewing transformation
swf_pushmatrix — Push the current transformation matrix back unto the stack
swf_popmatrix — Restore a previous transformation matrix
swf_scale — Scale the current transformation
swf_translate — Translate the current transformations
swf_rotate — Rotate the current transformation
swf_posround — Enables or Disables the rounding of the translation when objects are placed or moved

编辑历史:[这消息被semon编辑过(编辑时间2000-12-29 17:25:06)]
[这消息被semon编辑过(编辑时间2000-12-29 19:12:01)]