Horizontal Text Example
//setting up variables
$Xposition = 50;
$Yposition = 50;
$Zposition = 0;
$Obj_depth = 1;
$char = THIS IS THE TEXT;
// begin swf
swf_pushmatrix ();
$firstid = swf_nextid ();
swf_definefont ($firstid, "Mod");
swf_fontsize (10);
$secondid = swf_nextid ();
swf_definetext ($secondid, $char, 1);
swf_translate ($Xposition, $Yposition, Zposition);
swf_placeobject ($secondid, $Obj_depth);
swf_popmatrix ();
swf_definetext
(PHP 4)
swf_definetext — テキスト文字列を定義する
説明
void swf_definetext ( int objid, string str, int docenter )現在のフォントおよびフォントサイズを使用して、テキスト文字列を定義します。
パラメータ
- objid
オブジェクト ID。
- str
テキストを表す文字列。
- docenter
docenter は単語のセンタリングを定義します。 docenter が 1 の場合、単語は x 方向にセンタリングされます。
返り値
値を返しません。
swf_definetext
zarek at jazdesign dot com
23-Jun-2001 01:28
23-Jun-2001 01:28