★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.swf-openfile.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to SWF
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
SWF
* swf_openfile
* swf_closefile
* swf_labelframe
* swf_showframe
* swf_setframe
* swf_getframe
* swf_mulcolor
* swf_addcolor
* swf_placeobject
* swf_modifyobject
* swf_removeobject
* swf_nextid
* swf_startdoaction
* swf_actiongotoframe
* swf_actiongeturl
* swf_actionnextframe
* swf_actionprevframe
* swf_actionplay
* swf_actionstop
* swf_actiontogglequality
* swf_actionwaitforframe
* swf_actionsettarget
* swf_actiongotolabel
* swf_enddoaction
* swf_defineline
* swf_definerect
* swf_definepoly
* swf_startshape
* swf_shapelinesolid
* swf_shapefilloff
* swf_shapefillsolid
* swf_shapefillbitmapclip
* swf_shapefillbitmaptile
* swf_shapemoveto
* swf_shapelineto
* swf_shapecurveto
* swf_shapecurveto3
* swf_shapearc
* swf_endshape
* swf_definefont
* swf_setfont
* swf_fontsize
* swf_fontslant
* swf_fonttracking
* swf_getfontinfo
* swf_definetext
* swf_textwidth
* swf_definebitmap
* swf_getbitmapinfo
* swf_startsymbol
* swf_endsymbol
* swf_startbutton
* swf_addbuttonrecord
* swf_oncondition
* swf_endbutton
* swf_viewport
* swf_ortho
* swf_ortho2
* swf_perspective
* swf_polarview
* swf_lookat
* swf_pushmatrix
* swf_popmatrix
* swf_scale
* swf_translate
* swf_rotate
* swf_posround
Manual: swf_openfile
View the source code for this pageSearch the site



Previous page
 SWF
 Updated
Mon, 14 Aug 2000
swf_closefile 
Next page


swf_openfile

(PHP4 >= 4.0RC2)

swf_openfile --  新規にShockwave Flashファイルをオープンする

説明

void swf_openfile (string filename, float width, float height, float framerate, float r, float g, float b)

swf_openfile()関数は、filename という名前の新しいファイルをオープンします。 幅はwidth、高さはheight、 フレームレートはframerate、背景色は赤色が r、緑色がg、 青色がbとなります。

swf_openfile()は最初にコールする関数である必要があります。 さもないと、セグメンテーションフォルトが発生します。 出力を画面に送りたい場合には、filenameを"php://stdout"にして下さい。 (この機能は4.0.1以降でサポートされました)


User Contributed Notes: swf_openfile


leknor@leknor.com
01-Jul-2000 05:43
I keep getting this error:

<PRE>[Thu Jun 29 23:20:17 2000] [notice] child pid 11944 exit signal Segmentation fault (11)</PRE>

in my apache error log when I try:

<PRE>swf_openfile ("php://stdout", 256, 256, 30, 1, 1, 1);</PRE>
(that was a change to the example in the top of swf pages)

I've upgraded to php4.0.1, It works fine when I write the output to a file, anyone get a clue?



prophecy@nerdherd.net
13-Jul-2000 01:25
I am having the exact same problem and can not find any information out about it.


prophecy@nerdherd.net
13-Jul-2000 02:24
I have done some more digging and found that the problem does not exist with php but with libswf itself. I have contacted the author of libswf with the problem. Looks like it tryed to write to the file handler after the file handler was closed.


sterling@php.net
19-Jul-2000 07:45
The solution to both your problems can be found at http://www.php.net/manual/ref.swf.php, in the user contributed notes section.


manu_killer@poczta.onet.pl
20-Jul-2000 01:10
Maybe "php://stdout" doesn't exists when you use PHP as an Apache module ?
In case of using it with standalone PHP it may work.



 About Notes


Previous page
 SWF
 Updated
Mon, 14 Aug 2000
swf_closefile 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.