downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

swf_endbutton> <swf_definerect
[edit] Last updated: Fri, 25 May 2012

view this page in

swf_definetext

(PHP 4)

swf_definetextテキスト文字列を定義する

説明

void swf_definetext ( int $objid , string $str , int $docenter )

現在のフォントおよびフォントサイズを使用して、テキスト文字列を定義します。

パラメータ

objid

オブジェクト ID。

str

テキストを表す文字列。

docenter

docenter は単語のセンタリングを定義します。 docenter が 1 の場合、単語は x 方向にセンタリングされます。

返り値

値を返しません。

例1 水平方向のテキストの例

<?php

$Xposition 
50;
$Yposition 50;
$Zposition 0;
$Obj_depth 1;

$char 'THIS IS THE TEXT';

swf_pushmatrix();

swf_definefont (swf_nextid(), "Mod");
swf_fontsize(10);

$secondid swf_nextid();
swf_definetext($secondid$char1);
swf_translate($Xposition$YpositionZposition);
swf_placeobject($secondid$Obj_depth);
swf_popmatrix();

?>

参考



add a note add a note User Contributed Notes swf_definetext
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites