Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Shockwave Flash Functions : swf_nextid

swf_nextid

Returns the next free object id (PHP 4)
int swf_nextid ( )


Code Examples / Notes » swf_nextid

zarek

this function, when used as shown below, works fine:
$char = "mytext";
$fontsize = 50;
$horiz = 50;
$vert = -50;
swf_pushmatrix ();
$nextid = swf_nextid ();
swf_definefont ($nextid, "Pix3");
swf_fontsize ($fontsize);
$nextid2 = swf_nextid ();
swf_definetext ($nextid2, $char, 1);
swf_translate ($horiz, $vert, 0);
swf_placeobject ($nextid2, 2);
swf_popmatrix ();
Stay tuned, I will be posting many working examples of swf using php on http://www.jazdesign.com  ... there is not anything there now but there will be soon.... send me email if you have specific questions.
note: swf with php is very quirky! if one thing is wrong it can make your system crash, browser lock or other fun things, sometimes testing can drive you nuts!


Change Language


Follow Navioo On Twitter
swf_actiongeturl
swf_actiongotoframe
swf_actiongotolabel
swf_actionnextframe
swf_actionplay
swf_actionprevframe
swf_actionsettarget
swf_actionstop
swf_actiontogglequality
swf_actionwaitforframe
swf_addbuttonrecord
swf_addcolor
swf_closefile
swf_definebitmap
swf_definefont
swf_defineline
swf_definepoly
swf_definerect
swf_definetext
swf_endbutton
swf_enddoaction
swf_endshape
swf_endsymbol
swf_fontsize
swf_fontslant
swf_fonttracking
swf_getbitmapinfo
swf_getfontinfo
swf_getframe
swf_labelframe
swf_lookat
swf_modifyobject
swf_mulcolor
swf_nextid
swf_oncondition
swf_openfile
swf_ortho2
swf_ortho
swf_perspective
swf_placeobject
swf_polarview
swf_popmatrix
swf_posround
swf_pushmatrix
swf_removeobject
swf_rotate
swf_scale
swf_setfont
swf_setframe
swf_shapearc
swf_shapecurveto3
swf_shapecurveto
swf_shapefillbitmapclip
swf_shapefillbitmaptile
swf_shapefilloff
swf_shapefillsolid
swf_shapelinesolid
swf_shapelineto
swf_shapemoveto
swf_showframe
swf_startbutton
swf_startdoaction
swf_startshape
swf_startsymbol
swf_textwidth
swf_translate
swf_viewport
eXTReMe Tracker