SWF 함수 목록
PHP Manual

swf_definetext

(PHP 4)

swf_definetextDefine a text string

설명

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

Defines a text string using the current font and font size.

인수

objid

The object id.

str

The text, as a string.

docenter

The docenter is where the word is centered, if docenter is 1, then the word is centered in x.

반환값

값을 반환하지 않습니다.

예제

Example #1 Horizontal text example

<?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();

?>

참고


SWF 함수 목록
PHP Manual